From 987eaf8edb85717a9840853ed0d032428fbf131b Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 29 Feb 2024 05:09:33 -0600 Subject: [PATCH] feat(nvim): enable backup feature --- dots/.config/nvim/lua/core/options.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dots/.config/nvim/lua/core/options.lua b/dots/.config/nvim/lua/core/options.lua index fc7d48db..3c72f35b 100755 --- a/dots/.config/nvim/lua/core/options.lua +++ b/dots/.config/nvim/lua/core/options.lua @@ -139,6 +139,10 @@ M.setup = function() -- Allow per project configuration via exrc opt.exrc = true + + -- Backups + opt.backupdir = vim.fn.stdpath('state') .. "/backup//" + opt.backup = true end return M