mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
new nvim config WIP
This commit is contained in:
parent
8163e330a0
commit
4c8fadee55
14 changed files with 463 additions and 0 deletions
11
nvim/init.lua
Normal file
11
nvim/init.lua
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue