Skip to content

Commit

Permalink
Merge branch 'main' into lightbulb-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf authored Jan 19, 2025
2 parents c97f9da + c002e8f commit 26e43d7
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/rl-0.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
- `mini.trailspace`
- `mini.visits`
- 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):

Expand Down
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,11 @@
flake = false;
};

plugin-rainbow-delimiters = {
url = "github:HiPhish/rainbow-delimiters.nvim";
flake = false;
};

# Minimap
plugin-minimap-vim = {
url = "github:wfxr/minimap.vim";
Expand Down
1 change: 1 addition & 0 deletions modules/plugins/visuals/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in {
./nvim-cursorline
./nvim-scrollbar
./nvim-web-devicons
./rainbow-delimiters
./tiny-devicons-auto-colors
];
}
18 changes: 18 additions & 0 deletions modules/plugins/visuals/rainbow-delimiters/config.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions modules/plugins/visuals/rainbow-delimiters/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
imports = [
./rainbow-delimiters.nix
./config.nix
];
}
13 changes: 13 additions & 0 deletions modules/plugins/visuals/rainbow-delimiters/rainbow-delimiters.nix
Original file line number Diff line number Diff line change
@@ -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" {};
};
}

0 comments on commit 26e43d7

Please sign in to comment.