mirror of
https://github.com/SoPat712/dotfiles.git
synced 2025-08-21 18:38:46 -04:00
11 lines
270 B
Lua
11 lines
270 B
Lua
local undodir = vim.fn.expand("~/.undodir")
|
|
|
|
-- Check if the undo directory exists, if not, create it
|
|
if not vim.fn.isdirectory(undodir) then
|
|
vim.fn.mkdir(undodir, "p", 0700)
|
|
end
|
|
|
|
-- Set the undodir and enable undofile
|
|
vim.opt.undodir = undodir
|
|
vim.opt.undofile = true
|