summaryrefslogtreecommitdiffstats
path: root/modules/plugins/mini/bufremove/config.nix
blob: b65b261af57c87acf35584e7de948898a7cc6bc8 (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;
  inherit (lib.nvim.dag) entryAnywhere;
  inherit (lib.nvim.lua) toLuaObject;

  cfg = config.vim.mini.bufremove;
in {
  vim = mkIf cfg.enable {
    startPlugins = ["mini-bufremove"];

    pluginRC.mini-bufremove = entryAnywhere ''
      require("mini.bufremove").setup(${toLuaObject cfg.setupOpts})
    '';
  };
}