summaryrefslogtreecommitdiffstats
path: root/modules/plugins/formatter/conform-nvim/config.nix
blob: b036ea66c82f545a59c7524428537aadaf3af303 (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
{
  config,
  lib,
  ...
}: let
  inherit (lib.modules) mkIf;

  cfg = config.vim.formatter.conform-nvim;
in {
  config = mkIf cfg.enable {
    vim.lazy.plugins.conform-nvim = {
      package = "conform-nvim";
      setupModule = "conform";
      inherit (cfg) setupOpts;
      event = [
        {
          event = "User";
          pattern = "LazyFile";
        }
      ];
      cmd = ["ConformInfo"];
    };
  };
}