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

  cfg = config.vim.git.gitlinker-nvim;
in {
  config = mkIf cfg.enable {
    vim = {
      lazy.plugins = {
        "gitlinker-nvim" = {
          package = "gitlinker-nvim";
          setupModule = "gitlinker";
          inherit (cfg) setupOpts;
          cmd = ["GitLink"];
        };
      };
    };
  };
}