diff options
Diffstat (limited to 'config/options.lua')
| -rw-r--r-- | config/options.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/options.lua b/config/options.lua index 294067c..ab03cbd 100644 --- a/config/options.lua +++ b/config/options.lua @@ -6,3 +6,13 @@ opt.smartindent = true opt.wrap = true opt.syntax = "on" opt.termguicolors = true + +local backupDir = vim.fn.stdpath("state") .. "/backup" +local b = io.open(backupDir, "r") +if b then + b:close() +else + os.execute("mkdir -p " .. backupDir) +end + +opt.backupdir = backupDir |
