refactor(options): moved undo directory to cache path for persistent undos

This commit is contained in:
sankalp committed 2025-06-02 15:42:42 +05:45
1 parent 61eb9d72c0
commit 2c6982ecdd
1 file changed
+2 -1
+2 -1
View File
@@ -21,7 +21,7 @@ local options = {
inccommand = 'split', -- preview incremental substitute
laststatus = 3,
list = true,
-- listchars = { trail = '', tab = '', nbsp = '_', extends = '>', precedes = '<' }, -- highlight
listchars = { trail = '', tab = '', nbsp = '_', extends = '>', precedes = '<' }, -- highlight
mouse = 'a', -- allow the mouse to be used in neovim
number = true, -- set numbered lines
numberwidth = 4, -- set number column width to 2 {default 4}
@@ -49,6 +49,7 @@ local options = {
timeoutlen = 300, -- time to wait for a mapped sequence to complete (in milliseconds)
title = true, -- window titles
undofile = true, -- enable persistent undo
undodir = vim.fn.stdpath('cache') .. '/undo',
undolevels = 10000,
updatetime = 50, -- faster completion (4000ms default)
wildmenu = true, -- wildmenu