summaryrefslogtreecommitdiffstats
path: root/modules/plugins/utility/undotree/config.nix
blob: 06343e6ab27a78e4c8aa05c7c79cc41f69c2fb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  lib,
  config,
  ...
}: let
  inherit (lib.modules) mkIf;

  cfg = config.vim.utility.undotree;
in {
  config = mkIf cfg.enable {
    vim.lazy.plugins.undotree = {
      package = "undotree";
      cmd = [
        "UndotreeToggle"
        "UndotreeShow"
        "UndotreeHide"
        "UndotreePersistUndo"
        "UndotreeFocus"
      ];
    };
  };
}