From 2c6982ecdd54bff553c84fc7ffe3038a741480be Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 2 Jun 2025 15:42:42 +0545 Subject: [PATCH] refactor(options): moved undo directory to cache path for persistent undos --- lua/core/options.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index d1c889b..3293a29 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -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