mirror of
https://github.com/itme-brain/nvim.git
synced 2026-03-23 17:39:43 -04:00
Initial neovim configuration
This commit is contained in:
commit
2da1c91264
14 changed files with 783 additions and 0 deletions
11
init.lua
Normal file
11
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