utility/undotree: use enable option

This commit is contained in:
Joshua Manchester 2025-07-24 15:57:06 +01:00
commit afe7559c8e
No known key found for this signature in database

View file

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