mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Add undo
This commit is contained in:
parent
9dc1c72a31
commit
a00d77f3d8
1 changed files with 7 additions and 0 deletions
|
|
@ -8,3 +8,10 @@ local opt = vim.opt
|
|||
opt.relativenumber = false
|
||||
opt.colorcolumn = "100"
|
||||
opt.swapfile = false
|
||||
|
||||
|
||||
opt.undofile = true
|
||||
opt.undodir = vim.fn.stdpath("state") .. "/undo"
|
||||
|
||||
-- Optional: make sure the directory exists
|
||||
vim.fn.mkdir(opt.undodir:get(), "p")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue