mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
utility/undotree: use enable option
This commit is contained in:
parent
8fbecab446
commit
afe7559c8e
1 changed files with 19 additions and 9 deletions
|
@ -1,12 +1,22 @@
|
||||||
{
|
{
|
||||||
vim.lazy.plugins.undotree = {
|
lib,
|
||||||
package = "undotree";
|
config,
|
||||||
cmd = [
|
...
|
||||||
"UndotreeToggle"
|
}: let
|
||||||
"UndotreeShow"
|
inherit (lib.modules) mkIf;
|
||||||
"UndotreeHide"
|
|
||||||
"UndotreePersistUndo"
|
cfg = config.vim.utility.undotree;
|
||||||
"UndotreeFocus"
|
in {
|
||||||
];
|
config = mkIf cfg.enable {
|
||||||
|
vim.lazy.plugins.undotree = {
|
||||||
|
package = "undotree";
|
||||||
|
cmd = [
|
||||||
|
"UndotreeToggle"
|
||||||
|
"UndotreeShow"
|
||||||
|
"UndotreeHide"
|
||||||
|
"UndotreePersistUndo"
|
||||||
|
"UndotreeFocus"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue