This commit is contained in:
Aditya 2024-03-07 09:49:13 +05:30
parent 551cb5b08d
commit 879841c34c
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 20 additions and 0 deletions

View file

@ -73,5 +73,6 @@
./utils/todo-comments.nix
./utils/toggleterm.nix
./utils/ultimate-autopair.nix
./utils/undotree.nix
];
}

19
config/utils/undotree.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, pkgs, host, user, ... }:
{
plugins.undotree = {
enable = true;
autoOpenDiff = true;
settings.FocusOnToggle = true;
};
keymaps = [
{
mode = "n";
key = "<leader>ut";
action = "<cmd>UndotreeToggle<cr>";
options = {
silent = true;
desc = "Undotree";
};
}
];
}