Skip to content

Commit 084c135

Browse files
committed
plugins/rainbow: init
Signed-off-by: saygo-png <[email protected]>
1 parent 0c50ed9 commit 084c135

File tree

2 files changed

+134
-0
lines changed

2 files changed

+134
-0
lines changed

plugins/by-name/rainbow/default.nix

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkVimPlugin {
3+
name = "rainbow";
4+
package = "rainbow";
5+
description = "Rainbow parentheses improved — shorter code, no level limit, smooth and fast with powerful configuration.";
6+
maintainers = [ lib.maintainers.saygo-png ];
7+
globalPrefix = "rainbow_";
8+
9+
settingsExample = {
10+
active = 1;
11+
conf = {
12+
guifgs = [
13+
"#7d8618"
14+
"darkorange3"
15+
"seagreen3"
16+
"firebrick"
17+
];
18+
ctermfgs = [
19+
"lightblue"
20+
"lightyellow"
21+
"lightcyan"
22+
"lightmagenta"
23+
];
24+
guis = [ "" ];
25+
cterms = [ "" ];
26+
operators = "_,_";
27+
parentheses = [
28+
"start=/(/ end=/)/ fold"
29+
"start=/\\[/ end=/\\]/ fold"
30+
"start=/{/ end=/}/ fold"
31+
];
32+
separately = {
33+
"*" = { };
34+
markdown = {
35+
parentheses_options = "containedin=markdownCode contained";
36+
};
37+
lisp = {
38+
guifgs = [
39+
"royalblue3"
40+
"darkorange3"
41+
"seagreen3"
42+
"firebrick"
43+
"darkorchid3"
44+
];
45+
};
46+
haskell = {
47+
parentheses = [
48+
"start=/(/ end=/)/ fold"
49+
"start=/\\[/ end=/\\]/ fold"
50+
"start=/\v\{\ze[^-]/ end=/}/ fold"
51+
];
52+
};
53+
vim = {
54+
parentheses_options = "containedin=vimFuncBody";
55+
};
56+
perl = {
57+
syn_name_prefix = "perlBlockFoldRainbow";
58+
};
59+
stylus = {
60+
parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ];
61+
};
62+
css = 0;
63+
};
64+
};
65+
};
66+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
empty = {
3+
plugins.rainbow.enable = true;
4+
};
5+
6+
example = {
7+
plugins.rainbow = {
8+
enable = true;
9+
settings = {
10+
active = 1;
11+
conf = {
12+
guifgs = [
13+
"#7d8618"
14+
"darkorange3"
15+
"seagreen3"
16+
"firebrick"
17+
];
18+
ctermfgs = [
19+
"lightblue"
20+
"lightyellow"
21+
"lightcyan"
22+
"lightmagenta"
23+
];
24+
guis = [ "" ];
25+
cterms = [ "" ];
26+
operators = "_,_";
27+
parentheses = [
28+
"start=/(/ end=/)/ fold"
29+
"start=/\\[/ end=/\\]/ fold"
30+
"start=/{/ end=/}/ fold"
31+
];
32+
separately = {
33+
"*" = { };
34+
markdown = {
35+
parentheses_options = "containedin=markdownCode contained";
36+
};
37+
lisp = {
38+
guifgs = [
39+
"royalblue3"
40+
"darkorange3"
41+
"seagreen3"
42+
"firebrick"
43+
"darkorchid3"
44+
];
45+
};
46+
haskell = {
47+
parentheses = [
48+
"start=/(/ end=/)/ fold"
49+
"start=/\\[/ end=/\\]/ fold"
50+
"start=/\v\{\ze[^-]/ end=/}/ fold"
51+
];
52+
};
53+
vim = {
54+
parentheses_options = "containedin=vimFuncBody";
55+
};
56+
perl = {
57+
syn_name_prefix = "perlBlockFoldRainbow";
58+
};
59+
stylus = {
60+
parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ];
61+
};
62+
css = 0;
63+
};
64+
};
65+
};
66+
};
67+
};
68+
}

0 commit comments

Comments
 (0)