Platform independent undodir

This commit is contained in:
2025-12-16 13:50:00 +01:00
parent 1c482ecdf7
commit 3f61b7c994

View File

@@ -16,7 +16,7 @@ require("lazy").setup("plugins")
require("commands")
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. '/.cache/nvim/undodir'
vim.opt.undodir = vim.fn.stdpath('cache') .. '/undodir'
vim.opt.swapfile = false
vim.opt.undofile = true
vim.opt.smartcase = true