nv/config/utils/undotree.nix
2024-03-07 09:49:13 +05:30

19 lines
340 B
Nix

{ 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";
};
}
];
}