summaryrefslogtreecommitdiffstats
path: root/modules/plugins/mini/colors/config.nix
blob: 262d7e925c5e783e540918e9c27408734106db81 (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.colors;
in {
  vim = mkIf cfg.enable {
    startPlugins = ["mini-colors"];

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