From 80c1dfee6bd25da92128e6134dfa8c3709948346 Mon Sep 17 00:00:00 2001 From: Robin Kautz Date: Sat, 26 Jun 2021 20:21:49 +0200 Subject: [PATCH] configured persistent undo (#529) --- lua/settings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/settings.lua b/lua/settings.lua index e859abf2..b8bd7093 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -30,6 +30,9 @@ vim.o.showtabline = 2 -- Always show tabs vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore vim.o.backup = false -- This is recommended by coc vim.o.writebackup = false -- This is recommended by coc +vim.o.swapfile = false -- Do not write any swp files +vim.o.undodir = CACHE_PATH .. '/undo' -- Set undo directory +vim.o.undofile = true -- Enable persistent undo vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time vim.o.updatetime = 300 -- Faster completion vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms