summaryrefslogtreecommitdiffstats
path: root/modules/plugins/visuals/blink-indent/config.nix
blob: 7a05e7fc8bf15d8962dc50ccda51e448a024ae7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  inherit (lib.modules) mkIf;

  cfg = config.vim.visuals.blink-indent;
in {
  config = mkIf cfg.enable {
    vim.lazy.plugins.blink-indent = {
      package = "blink-indent";
      setupModule = "blink.indent";
      inherit (cfg) setupOpts;

      event = ["BufEnter"];
    };
  };
}