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

  cfg = config.vim.utility.leetcode-nvim;
in {
  config = mkIf cfg.enable {
    vim = {
      startPlugins = [
        "plenary-nvim"
        "nui-nvim"
      ];

      lazy.plugins.leetcode-nvim = {
        package = "leetcode-nvim";
        setupModule = "leetcode";
        inherit (cfg) setupOpts;
      };

      telescope.enable = true;
    };
  };
}