File tree Expand file tree Collapse file tree 2 files changed +150
-0
lines changed
tests/test-sources/plugins/by-name/rainbow Expand file tree Collapse file tree 2 files changed +150
-0
lines changed Original file line number Diff line number Diff line change
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
+ operators = "_,_" ;
19
+ parentheses = [
20
+ "start=/(/ end=/)/ fold"
21
+ "start=/\\ [/ end=/\\ ]/ fold"
22
+ ] ;
23
+ separately = {
24
+ "*" = { } ;
25
+ markdown = {
26
+ parentheses_options = "containedin=markdownCode contained" ;
27
+ } ;
28
+ haskell = {
29
+ parentheses = [
30
+ "start=/\\ [/ end=/\\ ]/ fold"
31
+ "start=/\v \{ \z e[^-]/ end=/}/ fold"
32
+ ] ;
33
+ } ;
34
+ css = 0 ;
35
+ } ;
36
+ } ;
37
+ } ;
38
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ empty = {
3
+ plugins . rainbow . enable = true ;
4
+ } ;
5
+
6
+ defaults = {
7
+ plugins . rainbow = {
8
+ enable = true ;
9
+ settings = {
10
+ conf = {
11
+ guifgs = [
12
+ "royalblue3"
13
+ "darkorange3"
14
+ "seagreen3"
15
+ "firebrick"
16
+ ] ;
17
+ ctermfgs = [
18
+ "lightblue"
19
+ "lightyellow"
20
+ "lightcyan"
21
+ "lightmagenta"
22
+ ] ;
23
+ guis = [ "" ] ;
24
+ cterms = [ "" ] ;
25
+ operators = "_,_" ;
26
+ contains_prefix = "TOP" ;
27
+ parentheses_options = "" ;
28
+ parentheses = [
29
+ "start=/(/ end=/)/ fold"
30
+ "start=/\\ [/ end=/\\ ]/ fold"
31
+ "start=/{/ end=/}/ fold"
32
+ ] ;
33
+ separately = {
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 \{ \z e[^-]/ end=/}/ fold"
51
+ ] ;
52
+ } ;
53
+ tex = {
54
+ parentheses_options = "containedin=texDocZone" ;
55
+ parentheses = [
56
+ "start=/(/ end=/)/"
57
+ "start=/\\ [/ end=/\\ ]/"
58
+ ] ;
59
+ } ;
60
+ vim = {
61
+ parentheses_options = "containedin=vimFuncBody,vimExecute" ;
62
+ parentheses = [
63
+ "start=/(/ end=/)/"
64
+ "start=/\\ [/ end=/\\ ]/"
65
+ "start=/{/ end=/}/ fold"
66
+ ] ;
67
+ } ;
68
+ perl = {
69
+ syn_name_prefix = "perlBlockFoldRainbow" ;
70
+ } ;
71
+ stylus = {
72
+ parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ] ;
73
+ } ;
74
+ css = 0 ;
75
+ sh = 0 ;
76
+ vimwiki = 0 ;
77
+ } ;
78
+ } ;
79
+ } ;
80
+ } ;
81
+ } ;
82
+
83
+ example = {
84
+ plugins . rainbow = {
85
+ enable = true ;
86
+ settings = {
87
+ active = 1 ;
88
+ conf = {
89
+ guifgs = [
90
+ "#7d8618"
91
+ "darkorange3"
92
+ "seagreen3"
93
+ "firebrick"
94
+ ] ;
95
+ parentheses = [
96
+ "start=/(/ end=/)/ fold"
97
+ "start=/\\ [/ end=/\\ ]/ fold"
98
+ ] ;
99
+ separately = {
100
+ "*" = { } ;
101
+ haskell = {
102
+ parentheses = [
103
+ "start=/\\ [/ end=/\\ ]/ fold"
104
+ "start=/\v \{ \z e[^-]/ end=/}/ fold"
105
+ ] ;
106
+ } ;
107
+ } ;
108
+ } ;
109
+ } ;
110
+ } ;
111
+ } ;
112
+ }
You can’t perform that action at this time.
0 commit comments