From f45540aefcb9be0736a3bde718ea861d585615ee Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 4 Dec 2021 22:37:36 +0100 Subject: Vim/nvim undo history in .cache --- .config/nvim/lua/setup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 92677fb..0a02795 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -1,7 +1,7 @@ local set = vim.opt vim.cmd('syntax enable') -vim.cmd('set undodir=$HOME/.vim/undo') +vim.cmd('set undodir=$XDG_CACHE_HOME/nvim/undo') vim.cmd('set undofile') vim.cmd('colorscheme doom-one') -- cgit v1.2.3-70-g09d2