mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-22 18:02:22 +00:00
Merge pull request #570 from LilleAila/add-rainbow-delimiters
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Has been cancelled
Validate flake & check documentation / Validate hyperlinks in documentation sources (push) Has been cancelled
Validate flake & check formatting / Validate Flake (push) Has been cancelled
Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Check for typos in the source tree / check-typos (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Has been cancelled
Validate flake & check documentation / Validate hyperlinks in documentation sources (push) Has been cancelled
Validate flake & check formatting / Validate Flake (push) Has been cancelled
Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Check for typos in the source tree / check-typos (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
visuals/rainbow-delimiters: init
This commit is contained in:
commit
c002e8f572
7 changed files with 61 additions and 0 deletions
|
@ -102,6 +102,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):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -2361,6 +2361,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2893,6 +2909,7 @@
|
|||
"plugin-precognition-nvim": "plugin-precognition-nvim",
|
||||
"plugin-project-nvim": "plugin-project-nvim",
|
||||
"plugin-promise-async": "plugin-promise-async",
|
||||
"plugin-rainbow-delimiters": "plugin-rainbow-delimiters",
|
||||
"plugin-registers": "plugin-registers",
|
||||
"plugin-render-markdown-nvim": "plugin-render-markdown-nvim",
|
||||
"plugin-rose-pine": "plugin-rose-pine",
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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…
Reference in a new issue