nv/config/utils/undotree.nix

27 lines
369 B
Nix
Raw Normal View History

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