mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:17:35 +00:00
Handle missing env variables
This commit is contained in:
parent
a2a1326258
commit
1aaba4f1c6
@ -5,8 +5,8 @@ local utils = require("utils")
|
||||
-- Set backup on
|
||||
o.backup = true
|
||||
o.backupdir = table.concat({
|
||||
vim.env.XDG_DATA_HOME .. "/nvim/backup//",
|
||||
vim.env.XDG_CONFIG_HOME .. "/nvim/backup//",
|
||||
(vim.env.XDG_DATA_HOME or "") .. "/nvim/backup//",
|
||||
(vim.env.XDG_CONFIG_HOME or "") .. "/nvim/backup//",
|
||||
"~/.config/nvim/backup//",
|
||||
".",
|
||||
}, ",")
|
||||
|
Loading…
Reference in New Issue
Block a user