new nvim config WIP

This commit is contained in:
Bryan Ramos 2024-08-20 16:53:12 -04:00
parent 8163e330a0
commit 4c8fadee55
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
14 changed files with 463 additions and 0 deletions

11
nvim/init.lua Normal file
View file

@ -0,0 +1,11 @@
local function load_config_directory(directory)
local config_path = vim.fn.stdpath("config") .. "/lua/" .. directory
local files = vim.fn.glob(config_path .. "/*.lua", false, true)
for _, file in ipairs(files) do
local file_name = vim.fn.fnamemodify(file, ":t:r") -- Extract filename without extension
require(directory .. "." .. file_name)
end
end
load_config_directory("config")