refactor(options): moved undo directory to cache path for persistent undos
This commit is contained in:
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user