From 0c8c6261a53934dc958e8f6fcc356e7ad9602d2b Mon Sep 17 00:00:00 2001 From: Kevin James Lausen Date: Sun, 29 May 2022 11:38:02 -0400 Subject: [PATCH] Enabled the writing of a backup file(~) before writing. --- lua/user/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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