diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-05-02 10:00:26 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-05-02 10:00:26 +0200 |
commit | 2e2643ce277f901a365a9fc574864ca4d1af9ddf (patch) | |
tree | 4f831f1eba34e22fa5fb9c2189a784628182c212 /lua | |
parent | 535de78034b347a3407aa6ff5287a1b4897172ea (diff) |
added backupdir
Diffstat (limited to 'lua')
-rw-r--r-- | lua/user/set.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/user/set.lua b/lua/user/set.lua index 2767143..9f526f4 100644 --- a/lua/user/set.lua +++ b/lua/user/set.lua @@ -20,11 +20,16 @@ opt.smartindent = true -- Enable break indent opt.breakindent = true +local home = os.getenv("HOME") -- History settings opt.undofile = true -opt.undodir = os.getenv("HOME") .. "/.local/state/nvim" -opt.swapfile = true opt.swapfile = true +opt.backup = true +opt.writebackup = true +opt.undodir = home .. "/.local/state/nvim" +-- https://stackoverflow.com/a/1625850 +opt.backupdir = home .. "/.local/share/Trash/nvim//,." +opt.directory = home .. "/.local/share/Trash/nvim//,." -- Case-insensitive searching UNLESS \C or capital in search opt.ignorecase = true |