Add UndoTree (#5)

This commit is contained in:
Terence Ponce 2023-04-03 18:57:58 +01:00 committed by GitHub
parent a3ee26ebf2
commit a5c4e11ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true

1
after/plugin/keymap.lua Normal file
View File

@ -0,0 +1 @@
vim.keymap.set('n', '<leader><F5>', vim.cmd.UndotreeToggle, { desc = "Display undo history" })

View File

@ -0,0 +1,3 @@
return {
"mbbill/undotree",
}