mirror of
https://github.com/akr2002/nv.git
synced 2024-11-09 18:49:45 +00:00
undotree
This commit is contained in:
parent
551cb5b08d
commit
879841c34c
2 changed files with 20 additions and 0 deletions
|
@ -73,5 +73,6 @@
|
||||||
./utils/todo-comments.nix
|
./utils/todo-comments.nix
|
||||||
./utils/toggleterm.nix
|
./utils/toggleterm.nix
|
||||||
./utils/ultimate-autopair.nix
|
./utils/ultimate-autopair.nix
|
||||||
|
./utils/undotree.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
config/utils/undotree.nix
Normal file
19
config/utils/undotree.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue