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

  cfg = config.vim.utility.icon-picker;
in {
  config = mkIf cfg.enable {
    vim.startPlugins = ["dressing-nvim"];

    vim.lazy.plugins.icon-picker-nvim = {
      package = "icon-picker-nvim";
      setupModule = "icon-picker";
      setupOpts = {
        disable_legacy_commands = true;
      };

      cmd = ["IconPickerInsert" "IconPickerNormal" "IconPickerYank"];
    };
  };
}