summaryrefslogtreecommitdiffstats
path: root/modules/plugins/rich-presence/cord-nvim/config.nix
blob: c22c1858f2b73d0f15fa2b6b443d6cc322bf2565 (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.presence.cord-nvim;
in {
  config = mkIf cfg.enable {
    vim = {
      globals.cord_defer_startup = true;

      lazy.plugins.cord-nvim = {
        package = "cord-nvim";
        setupModule = "cord";
        inherit (cfg) setupOpts;
        event = ["DeferredUIEnter"];
      };
    };
  };
}