diff options
author | Robin Kautz <[email protected]> | 2021-06-26 20:21:49 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-26 14:21:49 -0400 |
commit | 80c1dfee6bd25da92128e6134dfa8c3709948346 (patch) | |
tree | 4d859df41dbc42ecc73eeefaa27b53ced4577fec /lua | |
parent | 15d194ce0982f270a56807b06572e9c55233bce6 (diff) |
configured persistent undo (#529)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/settings.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |