mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-23 18:32:23 +00:00
19 lines
390 B
Nix
19 lines
390 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
cfg = config.vim.visuals.rainbow-delimiters;
|
|
in {
|
|
vim = mkIf cfg.enable {
|
|
startPlugins = ["rainbow-delimiters"];
|
|
|
|
pluginRC.rainbow-delimiters = entryAnywhere ''
|
|
vim.g.rainbow_delimiters = ${toLuaObject cfg.setupOpts}
|
|
'';
|
|
};
|
|
}
|