diff --git a/config/default.nix b/config/default.nix index 27c7215..a419ef6 100644 --- a/config/default.nix +++ b/config/default.nix @@ -73,5 +73,6 @@ ./utils/todo-comments.nix ./utils/toggleterm.nix ./utils/ultimate-autopair.nix + ./utils/undotree.nix ]; } diff --git a/config/utils/undotree.nix b/config/utils/undotree.nix new file mode 100644 index 0000000..beea583 --- /dev/null +++ b/config/utils/undotree.nix @@ -0,0 +1,19 @@ +{ config, pkgs, host, user, ... }: +{ + plugins.undotree = { + enable = true; + autoOpenDiff = true; + settings.FocusOnToggle = true; + }; + keymaps = [ + { + mode = "n"; + key = "ut"; + action = "UndotreeToggle"; + options = { + silent = true; + desc = "Undotree"; + }; + } + ]; +}