NVim: undotree

This commit is contained in:
Filippo Berto 2024-01-15 19:01:31 +01:00
parent 5a28ef416f
commit d437620e3e
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -53,6 +53,15 @@ let vp = pkgs.vimPlugins; in {
config = builtins.readFile ./nvim/nvim-cmp-config.lua;
}
# Undo tree
{
plugin = vp.undotree;
type = "lua";
config = ''
vim.keymap.set({ "n", "v" }, "<leader>u", vim.cmd.UndotreeToggle, { desc = "Toggle undo tree" })
'';
}
# # Detect tabstop and shiftwidth automatically
# vp.sleuth