Platform independent undodir
This commit is contained in:
2
init.lua
2
init.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user