Skip to content

Commit ee01d91

Browse files
committed
Load local init file
1 parent debcde0 commit ee01d91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,3 +1095,10 @@ require('lazy').setup({
10951095
},
10961096
},
10971097
})
1098+
1099+
-- Load local init file, if it exists
1100+
local local_init_file = vim.fn.expand '~/.nvim.local.lua'
1101+
if vim.uv.fs_stat(local_init_file) then
1102+
print 'Loading local init file!'
1103+
loadfile(local_init_file)()
1104+
end

0 commit comments

Comments
 (0)