From 23de12baba9fbfc4ca24581b37c374aa5345cc25 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Nov 2024 13:30:37 +0100 Subject: update nvim config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .vim/plugin/undo.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .vim/plugin/undo.lua (limited to '.vim/plugin/undo.lua') diff --git a/.vim/plugin/undo.lua b/.vim/plugin/undo.lua new file mode 100644 index 0000000..aed6195 --- /dev/null +++ b/.vim/plugin/undo.lua @@ -0,0 +1,10 @@ +-- persistent undo + +local undodir = vim.fn.stdpath('cache') .. '/undodir' + +if vim.fn.isdirectory(undodir) == 0 then + vim.fn.mkdir(undodir, 'p', '0700') +end + +vim.g.undodir = undodir +vim.opt.undofile = true -- cgit 1.4.1