Set fallback backupdir paths

This commit is contained in:
ViViDboarder 2022-01-27 12:32:42 -08:00
parent 6efc54a754
commit a2a1326258

View File

@ -4,6 +4,12 @@ local utils = require("utils")
-- Set backup on -- Set backup on
o.backup = true o.backup = true
o.backupdir = table.concat({
vim.env.XDG_DATA_HOME .. "/nvim/backup//",
vim.env.XDG_CONFIG_HOME .. "/nvim/backup//",
"~/.config/nvim/backup//",
".",
}, ",")
-- Set leader to space -- Set leader to space
g.mapleader = " " g.mapleader = " "