Source ~/.vimrc.lua if it exists
- Id
- 488376d0e029d12c399f225f6fcd7e3735127195
- Author
- Caio
- Commit time
- 2025-05-14T09:31:00+02:00
Modified config/nvim/init.lua
vim.cmd("autocmd InsertLeave * if pumvisible() == 0|pclose|endif")
vim.cmd("autocmd BufReadPost * lua require('custom').jump_to_last_position()")
+
+-- Load local (unversioned) settings if they exist
+if vim.fn.filereadable(vim.fn.expand('~/.vimrc.lua')) then
+ vim.cmd.so("~/.vimrc.lua")
+end