From 1c8a8b91fbf2b388f607cd8e0869b2386a9b9c2a Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 11 Apr 2023 09:21:33 +0200 Subject: [PATCH] fix(vim): Fix ~ dir being created on save --- .config/nvim/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index fe3c3dc..dc400ac 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -114,7 +114,7 @@ vim.opt.showmode = false --- Operation configuration --- vim.opt.swapfile = false vim.opt.backup = false -vim.opt.undodir = "~/.config/nvim/undodir" +vim.opt.undodir = vim.fn.expand('~').."/.config/nvim/undodir" vim.opt.undofile = true --- Folding behaviour configuration ---