diff --git a/lua/user/options.lua b/lua/user/options.lua index 907ec9e..5ddf380 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -20,7 +20,7 @@ vim.opt.termguicolors = true -- set term gui colors (most ter vim.opt.timeoutlen = 1000 -- time to wait for a mapped sequence to complete (in milliseconds) vim.opt.undofile = true -- enable persistent undo vim.opt.updatetime = 300 -- faster completion (4000ms default) -vim.opt.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited +vim.opt.writebackup = true -- Write a backup file, before saving. vim.opt.expandtab = true -- convert tabs to spaces vim.opt.shiftwidth = 2 -- the number of spaces inserted for each indentation vim.opt.tabstop = 2 -- insert 2 spaces for a tab