get $HOME instead of setting home_dir manually

This commit is contained in:
2024-03-02 15:06:58 +01:00
parent 9f6b6776c2
commit e777391307
2 changed files with 21 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ require("maps").init()
require("commands")
vim.opt.backup = false
vim.opt.undodir = '/Users/fschmidt/.cache/nvim/undodir'
vim.opt.undodir = os.getenv("HOME") .. '/.cache/nvim/undodir'
vim.opt.swapfile = false
vim.opt.undofile = true
vim.opt.smartcase = true