mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 14:50:12 -04:00
init
This commit is contained in:
commit
864c69fe61
147 changed files with 11233 additions and 0 deletions
13
user/modules/neovim/nvim/init.lua
Normal file
13
user/modules/neovim/nvim/init.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
local function load_config_directory(directory)
|
||||
local config_path = vim.fn.stdpath("config") .. "/lua/" .. directory
|
||||
local files = vim.fn.readdir(config_path, function(name)
|
||||
return name:sub(-4) == ".lua"
|
||||
end)
|
||||
|
||||
for _, file in ipairs(files) do
|
||||
local file_name = file:sub(1, -5)
|
||||
require(directory .. "." .. file_name)
|
||||
end
|
||||
end
|
||||
|
||||
load_config_directory("config")
|
||||
Loading…
Add table
Add a link
Reference in a new issue