diff options
| author | seth <[email protected]> | 2024-03-19 15:53:03 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-03-19 15:53:03 -0400 |
| commit | 7d3165862c8be772468a43ce2e75ccf2aa2aac13 (patch) | |
| tree | e41163a5c0e779fce032b2d1bf8d42bae15735f7 | |
| parent | 0bf08d73c660afcb4d1b12d8313f08e5bc63f357 (diff) | |
remove cwd from backupdir
| -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 |
