nvim: Load local.lua if existing

This commit is contained in:
raute 2024-01-09 13:56:20 +01:00
parent d49211095a
commit 5922546289
1 changed files with 6 additions and 0 deletions

View File

@ -279,3 +279,9 @@ cmp.setup({
ghost_text = true,
},
})
local f = io.open(vim.fn.expand("~/.config/nvim/lua/local.lua"), "r")
if f ~= nil then
io.close(f)
require("local")
end