visuals/rainbow-delimiters: init

This commit is contained in:
LilleAila 2025-01-19 12:52:45 +01:00
parent db8a586b7e
commit dfd4dc8494
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 61 additions and 0 deletions

View file

@ -102,6 +102,7 @@
- `mini.trailspace` - `mini.trailspace`
- `mini.visits` - `mini.visits`
- Add [fzf-lua](https://github.com/ibhagwan/fzf-lua) in `vim.fzf-lua` - Add [fzf-lua](https://github.com/ibhagwan/fzf-lua) in `vim.fzf-lua`
- Add [rainbow-delimiters](https://github.com/HiPhish/rainbow-delimiters.nvim) in `vim.visuals.rainbow-delimiters`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -2361,6 +2361,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-rainbow-delimiters": {
"flake": false,
"locked": {
"lastModified": 1736686348,
"narHash": "sha256-zWHXYs3XdnoszqOFY3hA2L5mNn1a44OAeKv3lL3EMEw=",
"owner": "HiPhish",
"repo": "rainbow-delimiters.nvim",
"rev": "85b80abaa09cbbc039e3095b2f515b3cf8cadd11",
"type": "github"
},
"original": {
"owner": "HiPhish",
"repo": "rainbow-delimiters.nvim",
"type": "github"
}
},
"plugin-registers": { "plugin-registers": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2893,6 +2909,7 @@
"plugin-precognition-nvim": "plugin-precognition-nvim", "plugin-precognition-nvim": "plugin-precognition-nvim",
"plugin-project-nvim": "plugin-project-nvim", "plugin-project-nvim": "plugin-project-nvim",
"plugin-promise-async": "plugin-promise-async", "plugin-promise-async": "plugin-promise-async",
"plugin-rainbow-delimiters": "plugin-rainbow-delimiters",
"plugin-registers": "plugin-registers", "plugin-registers": "plugin-registers",
"plugin-render-markdown-nvim": "plugin-render-markdown-nvim", "plugin-render-markdown-nvim": "plugin-render-markdown-nvim",
"plugin-rose-pine": "plugin-rose-pine", "plugin-rose-pine": "plugin-rose-pine",

View file

@ -502,6 +502,11 @@
flake = false; flake = false;
}; };
plugin-rainbow-delimiters = {
url = "github:HiPhish/rainbow-delimiters.nvim";
flake = false;
};
# Minimap # Minimap
plugin-minimap-vim = { plugin-minimap-vim = {
url = "github:wfxr/minimap.vim"; url = "github:wfxr/minimap.vim";

View file

@ -15,6 +15,7 @@ in {
./nvim-cursorline ./nvim-cursorline
./nvim-scrollbar ./nvim-scrollbar
./nvim-web-devicons ./nvim-web-devicons
./rainbow-delimiters
./tiny-devicons-auto-colors ./tiny-devicons-auto-colors
]; ];
} }

View 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}
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./rainbow-delimiters.nix
./config.nix
];
}

View file

@ -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" {};
};
}