recursive config load

This commit is contained in:
Christian Nieves
2025-03-01 08:55:10 -06:00
parent 3554761a0c
commit e242d6eb56
3 changed files with 8 additions and 7 deletions

View File

@ -13,13 +13,14 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim")
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim/lua")
local luahome = vim.env.HOME .. "/.vim/lua"
vim.opt.rtp:prepend(luahome)
package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
require("config.clipboard")
require("config.tmpl")
require("config.zip")
for _, file in ipairs(vim.fn.readdir(luahome .. "/config", [[v:val =~ '\.lua$']])) do
require("config" .. "." .. file:gsub("%.lua$", ""))
end
require("lazy").setup({
-- this entry tells lazy.nvim to load the list of of *.lua files from plugins/

View File

@ -5,9 +5,6 @@ return {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
},
config = function()
require("config.refactoring")
end,
-- stylua: ignore
keys = {
-- remap to open the Telescope refactoring menu in visual mode

View File

@ -164,6 +164,9 @@ export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LANG_ALL="en_US.UTF-8"
export CARGO_NET_GIT_FETCH_WITH_CLI=true
source ~/.bash_profile
export PATH="$HOME/.local/bin:$PATH"