neovim: add undotree

This commit is contained in:
2023-08-29 12:36:09 +03:00
parent 4b845016b5
commit 74d2bdbed3
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
vim.opt.undodir = os.getenv("HOME") .. ".vim/undodir"
vim.opt.undofile = true
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)

View File

@@ -47,6 +47,8 @@ require("packer").startup(function(use)
use({ "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim" })
use({ "jose-elias-alvarez/null-ls.nvim" })
use({ "mbbill/undotree" })
if PACKER_BOOTSTRAP then
require("packer").sync()
end