From 4e97b08d50e02f2965c890d045137bd658c80c4f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 13 Jul 2023 14:30:35 -0500 Subject: [PATCH] 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. --- dots/.config/nvim/lua/core/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/core/options.lua b/dots/.config/nvim/lua/core/options.lua index 3b26074c..788470ac 100755 --- a/dots/.config/nvim/lua/core/options.lua +++ b/dots/.config/nvim/lua/core/options.lua @@ -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