refactor(nvim): use state dir for neovim undodir

Was using XDG_CACHE which is incorrect.

Yes, Neovim uses this by default, but it's nice to ensure this is always
set as I desire instead of an upstream change setting this differently.
This commit is contained in:
Price Hiller 2023-07-13 14:30:35 -05:00
parent ef76ad857c
commit 4e97b08d50
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -58,7 +58,7 @@ M.setup = function()
opt.signcolumn = "yes"
-- Enable persistent undo
opt.undodir = vim.fn.stdpath("cache") .. "/undo"
opt.undodir = vim.fn.stdpath("state") .. "/undo"
opt.undofile = true
-- Better folding