mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
visuals/rainbow-delimiters: init
This commit is contained in:
parent
db8a586b7e
commit
dfd4dc8494
7 changed files with 61 additions and 0 deletions
|
@ -15,6 +15,7 @@ in {
|
|||
./nvim-cursorline
|
||||
./nvim-scrollbar
|
||||
./nvim-web-devicons
|
||||
./rainbow-delimiters
|
||||
./tiny-devicons-auto-colors
|
||||
];
|
||||
}
|
||||
|
|
18
modules/plugins/visuals/rainbow-delimiters/config.nix
Normal file
18
modules/plugins/visuals/rainbow-delimiters/config.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
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}
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/visuals/rainbow-delimiters/default.nix
Normal file
6
modules/plugins/visuals/rainbow-delimiters/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./rainbow-delimiters.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.visuals.rainbow-delimiters = {
|
||||
enable = mkEnableOption "rainbow-delimiters";
|
||||
setupOpts = mkPluginSetupOption "rainbow-delimiters" {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue