nvim: enable undofile

This commit is contained in:
inkch
2025-08-20 15:03:09 +09:00
parent ae55a1cdde
commit cb5d569142

View File

@@ -38,6 +38,9 @@ vim.opt.listchars = "tab:>>,trail:_,eol:$,multispace:··,extends:>,precedes:<,n
vim.opt.encoding = "utf-8"
vim.opt.fenc = "utf-8"
vim.opt.spell = true
vim.opt.undofile = true
vim.opt.undodir = vim.fn.expand("~/.cache/nvim/undo")
if vim.fn.executable('rg') then
vim.opt.grepprg = 'rg --vimgrep --smart-case --hidden'