nv/config/utils/undotree.nix

20 lines
340 B
Nix
Raw Normal View History

2024-03-07 04:19:13 +00:00
{ 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";
};
}
];
}