summaryrefslogtreecommitdiffstats
path: root/modules/plugins/visuals/neoscroll-nvim/config.nix
blob: 585c0c4ecddb7fc34c4fb9127c201df9de0f4bc4 (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.neoscroll-nvim;
in {
  config = mkIf cfg.enable {
    vim.lazy.plugins.neoscroll-nvim = {
      package = "neoscroll-nvim";
      setupModule = "neoscroll";
      inherit (cfg) setupOpts;

      event = ["DeferredUIEnter"];
    };
  };
}