forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheverforest.nix
255 lines (218 loc) · 7.88 KB
/
everforest.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.vim-plugin.mkVimPlugin {
name = "everforest";
isColorscheme = true;
globalPrefix = "everforest_";
maintainers = [ lib.maintainers.sheemap ];
settingsOptions = {
background =
defaultNullOpts.mkEnum
[
"hard"
"medium"
"soft"
]
"medium"
''
The background contrast used in this color scheme.
'';
enable_italic = defaultNullOpts.mkFlagInt 0 ''
To enable italic in this color scheme, set this option to `1`.
'';
disable_italic_comment = defaultNullOpts.mkFlagInt 0 ''
By default, italic is enabled in `Comment`. To disable italic in `Comment`, set this option to `1`
'';
cursor =
defaultNullOpts.mkEnumFirstDefault
[
"auto"
"red"
"orange"
"yellow"
"green"
"aqua"
"blue"
"purple"
]
''
Customize the cursor color, only works in GUI clients.
'';
transparent_background =
defaultNullOpts.mkEnumFirstDefault
[
0
1
2
]
''
To use transparent background, set this option to `1`.
If you want more ui components to be transparent (for example, status line
background), set this option to `2`.
'';
dim_inactive_windows = defaultNullOpts.mkFlagInt 0 ''
Dim inactive windows. Only works in Neovim currently.
When this option is used in conjunction with |g:everforest_show_eob| set to 0,
the end of the buffer will only be hidden inside the active window. Inside
inactive windows, the end of buffer filler characters will be visible in
dimmed symbols. This is due to the way Vim and Neovim handle |hl-EndOfBuffer|.
'';
sign_column_background =
defaultNullOpts.mkEnumFirstDefault
[
"none"
"grey"
]
''
By default, the color of sign column background is the same as normal text
background, but you can use a grey background by setting this option to `'grey'`.
'';
spell_foreground =
defaultNullOpts.mkEnumFirstDefault
[
"none"
"colored"
]
''
By default, this color scheme won't color the foreground of |spell|, instead
colored under curls will be used. If you also want to color the foreground,
set this option to `'colored'`.
'';
ui_contrast =
defaultNullOpts.mkEnumFirstDefault
[
"low"
"high"
]
''
The contrast of line numbers, indent lines, etc.
'';
show_eob = defaultNullOpts.mkFlagInt 1 ''
Whether to show |hl-EndOfBuffer|.
'';
float_style =
defaultNullOpts.mkEnumFirstDefault
[
"bright"
"dim"
]
''
Style used to make floating windows stand out from other windows. `'bright'`
makes the background of these windows lighter than |hl-Normal|, whereas
`'dim'` makes it darker.
Floating windows include for instance diagnostic pop-ups, scrollable
documentation windows from completion engines, overlay windows from
installers, etc.
'';
diagnostic_text_highlight = defaultNullOpts.mkFlagInt 0 ''
Some plugins support highlighting error/warning/info/hint texts, by default
these texts are only underlined, but you can use this option to also highlight
the background of them.
Currently, the following plugins are supported:
- neovim's built-in language server client
- [coc.nvim](https://github.com/neoclide/coc.nvim)
- [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
- [YouCompleteMe](https://github.com/ycm-core/YouCompleteMe)
- [ale](https://github.com/dense-analysis/ale)
- [neomake](https://github.com/neomake/neomake)
- [syntastic](https://github.com/vim-syntastic/syntastic)
'';
diagnostic_line_highlight = defaultNullOpts.mkFlagInt 0 ''
Some plugins support highlighting error/warning/info/hint lines, but this
feature is disabled by default in this color scheme. To enable this feature,
set this option to `1`.
Currently, the following plugins are supported:
- [coc.nvim](https://github.com/neoclide/coc.nvim)
- [YouCompleteMe](https://github.com/ycm-core/YouCompleteMe)
- [ale](https://github.com/dense-analysis/ale)
- [syntastic](https://github.com/vim-syntastic/syntastic)
'';
diagnostic_virtual_text =
defaultNullOpts.mkEnumFirstDefault
[
"grey"
"colored"
"highlighted"
]
''
Some plugins can use the virtual text feature of Neovim to display
error/warning/info/hint information. You can use this option to adjust the
way these virtual texts are highlighted.
Currently, the following plugins are supported:
- Neovim's built-in language server client
- [coc.nvim](https://github.com/neoclide/coc.nvim)
- [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
- [ale](https://github.com/dense-analysis/ale)
- [neomake](https://github.com/neomake/neomake)
- [YouCompleteMe](https://github.com/ycm-core/YouCompleteMe)
'';
current_word =
defaultNullOpts.mkEnumFirstDefault
[
"grey background"
"bold"
"underline"
"italic"
]
''
Some plugins can highlight the word under current cursor, you can use this
option to control their behavior.
Default value: `'grey background'` when not in transparent mode, `'bold'`
when in transparent mode.
Currently, the following plugins are supported:
- [coc-highlight](https://github.com/neoclide/coc-highlight)
- [vim_current_word](https://github.com/dominikduda/vim_current_word)
- [vim-illuminate](https://github.com/RRethy/vim-illuminate)
- [vim-cursorword](https://github.com/itchyny/vim-cursorword)
- [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
'';
inlay_hints_background =
defaultNullOpts.mkEnumFirstDefault
[
"none"
"dimmed"
]
''
Inlay hints are special markers that are displayed inline with the code to
provide you with additional information. You can use this option to customize
the background color of inlay hints.
Currently, the following LSP clients are supported:
- Neovim's built-in language server client
- [coc.nvim](https://github.com/neoclide/coc.nvim)
- [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
- [YouCompleteMe](https://github.com/ycm-core/YouCompleteMe)
'';
disable_terminal_colors = defaultNullOpts.mkFlagInt 0 ''
Setting this option to `1` will disable terminal colors provided by this color
scheme so you can remain terminal colors the same when using |:terminal| in
vim and outside of vim.
'';
lightline_disable_bold = defaultNullOpts.mkFlagInt 0 ''
By default, bold is enabled in lightline color scheme. To disable bold in
lightline color scheme, set this option to `1`.
'';
colors_override = defaultNullOpts.mkAttrsOf (lib.types.listOf lib.types.str) { } ''
Override color palette. The available keys can be found in the plugin's [source code](https://github.com/sainnhe/everforest/blob/master/autoload/everforest.vim)
'';
};
settingsExample = {
background = "hard";
dim_inactive_windows = 1;
colors_override = {
bg0 = [
"#202020"
"234"
];
bg2 = [
"#282828"
"235"
];
};
};
extraConfig = cfg: { opts.termguicolors = lib.mkDefault true; };
}