.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-css / Readme.md
1 # coc-css
2
3 Css language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).
4
5 Uses [vscode-css-languageservice](https://github.com/Microsoft/vscode-css-languageservice) inside.
6
7 ## Install
8
9 In your vim/neovim, run the command:
10
11 ```
12 :CocInstall coc-css
13 ```
14
15 ## Features
16
17 Coc has support for all features that [vscode-css-languageservice](https://www.npmjs.com/package/vscode-css-languageservice) has.
18
19 - `doValidation` analyzes an input string and returns syntax and lint errros.
20 - `doComplete` provides completion proposals for a given location.
21 - `doHover` provides a hover text for a given location.
22 - `findDefinition` finds the definition of the symbol at the given location.
23 - `findReferences` finds all references to the symbol at the given location.
24 - `findDocumentHighlights` finds all symbols connected to the given location.
25 - `findDocumentSymbols` provides all symbols in the given document
26 - `doCodeActions` evaluates code actions for the given location, typically to fix a problem.
27 - `findColorSymbols` evaluates all color symbols in the given document
28 - `doRename` renames all symbols connected to the given location.
29 - `getFoldingRanges` returns folding ranges in the given document.
30
31 ## Configuration options
32
33 - **css.enable**:
34
35          default: `true`
36
37 - **css.trace.server**:
38
39          default: `"off"`
40
41         Valid options: ["off","messages","verbose"]
42
43 - **css.customData**:
44
45          default: `[]`
46
47 - **css.completion.triggerPropertyValueCompletion**:
48
49         By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior.,  default: `true`
50
51 - **css.completion.completePropertyWithSemicolon**:
52
53         Insert semicolon at end of line when completing CSS properties,  default: `true`
54
55 - **css.validate**:
56
57          default: `true`
58
59 - **css.colorDecorators.enable**:
60
61          default: `true`
62
63 - **css.lint.compatibleVendorPrefixes**:
64
65         When using a vendor-specific prefix make sure to also include all other vendor-specific properties,  default: `"ignore"`
66
67         Valid options: ["ignore","warning","error"]
68
69 - **css.lint.vendorPrefix**:
70
71         When using a vendor-specific prefix also include the standard property,  default: `"warning"`
72
73         Valid options: ["ignore","warning","error"]
74
75 - **css.lint.duplicateProperties**:
76
77         Do not use duplicate style definitions,  default: `"ignore"`
78
79         Valid options: ["ignore","warning","error"]
80
81 - **css.lint.emptyRules**:
82
83         Do not use empty rulesets,  default: `"warning"`
84
85         Valid options: ["ignore","warning","error"]
86
87 - **css.lint.importStatement**:
88
89         Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.,  default: `"ignore"`
90
91         Valid options: ["ignore","warning","error"]
92
93 - **css.lint.boxModel**:
94
95          default: `"ignore"`
96
97         Valid options: ["ignore","warning","error"]
98
99 - **css.lint.universalSelector**:
100
101         The universal selector (*) is known to be slow,  default: `"ignore"`
102
103         Valid options: ["ignore","warning","error"]
104
105 - **css.lint.zeroUnits**:
106
107          default: `"ignore"`
108
109         Valid options: ["ignore","warning","error"]
110
111 - **css.lint.fontFaceProperties**:
112
113         @font-face rule must define 'src' and 'font-family' properties,  default: `"warning"`
114
115         Valid options: ["ignore","warning","error"]
116
117 - **css.lint.hexColorLength**:
118
119         Hex colors must consist of three or six hex numbers,  default: `"error"`
120
121         Valid options: ["ignore","warning","error"]
122
123 - **css.lint.argumentsInColorFunction**:
124
125         Invalid number of parameters,  default: `"error"`
126
127         Valid options: ["ignore","warning","error"]
128
129 - **css.lint.unknownProperties**:
130
131         Unknown property.,  default: `"warning"`
132
133         Valid options: ["ignore","warning","error"]
134
135 - **css.lint.ieHack**:
136
137          default: `"ignore"`
138
139         Valid options: ["ignore","warning","error"]
140
141 - **css.lint.unknownVendorSpecificProperties**:
142
143         Unknown vendor specific property.,  default: `"ignore"`
144
145         Valid options: ["ignore","warning","error"]
146
147 - **css.lint.propertyIgnoredDueToDisplay**:
148
149         Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect,  default: `"warning"`
150
151         Valid options: ["ignore","warning","error"]
152
153 - **css.lint.important**:
154
155         Import statements do not load in parallel,  default: `"ignore"`
156
157         Valid options: ["ignore","warning","error"]
158
159 - **css.lint.float**:
160
161         Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.,  default: `"ignore"`
162
163         Valid options: ["ignore","warning","error"]
164
165 - **css.lint.idSelector**:
166
167         Selectors should not contain IDs because these rules are too tightly coupled with the HTML.,  default: `"ignore"`
168
169         Valid options: ["ignore","warning","error"]
170
171 - **css.lint.unknownAtRules**:
172
173         Unknown at-rule.,  default: `"warning"`
174
175         Valid options: ["ignore","warning","error"]
176
177 - **less.completion.triggerPropertyValueCompletion**:
178
179         By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior.,  default: `true`
180
181 - **less.completion.completePropertyWithSemicolon**:
182
183         Insert semicolon at end of line when completing CSS properties,  default: `true`
184
185 - **less.validate**:
186
187          default: `true`
188
189 - **less.colorDecorators.enable**:
190
191          default: `true`
192
193 - **less.lint.compatibleVendorPrefixes**:
194
195         When using a vendor-specific prefix make sure to also include all other vendor-specific properties,  default: `"ignore"`
196
197         Valid options: ["ignore","warning","error"]
198
199 - **less.lint.vendorPrefix**:
200
201         When using a vendor-specific prefix also include the standard property,  default: `"warning"`
202
203         Valid options: ["ignore","warning","error"]
204
205 - **less.lint.duplicateProperties**:
206
207         Do not use duplicate style definitions,  default: `"ignore"`
208
209         Valid options: ["ignore","warning","error"]
210
211 - **less.lint.emptyRules**:
212
213         Do not use empty rulesets,  default: `"warning"`
214
215         Valid options: ["ignore","warning","error"]
216
217 - **less.lint.importStatement**:
218
219         Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.,  default: `"ignore"`
220
221         Valid options: ["ignore","warning","error"]
222
223 - **less.lint.boxModel**:
224
225          default: `"ignore"`
226
227         Valid options: ["ignore","warning","error"]
228
229 - **less.lint.universalSelector**:
230
231         The universal selector (*) is known to be slow,  default: `"ignore"`
232
233         Valid options: ["ignore","warning","error"]
234
235 - **less.lint.zeroUnits**:
236
237          default: `"ignore"`
238
239         Valid options: ["ignore","warning","error"]
240
241 - **less.lint.fontFaceProperties**:
242
243         @font-face rule must define 'src' and 'font-family' properties,  default: `"warning"`
244
245         Valid options: ["ignore","warning","error"]
246
247 - **less.lint.hexColorLength**:
248
249         Hex colors must consist of three or six hex numbers,  default: `"error"`
250
251         Valid options: ["ignore","warning","error"]
252
253 - **less.lint.argumentsInColorFunction**:
254
255         Invalid number of parameters,  default: `"error"`
256
257         Valid options: ["ignore","warning","error"]
258
259 - **less.lint.unknownProperties**:
260
261         Unknown property.,  default: `"warning"`
262
263         Valid options: ["ignore","warning","error"]
264
265 - **less.lint.ieHack**:
266
267          default: `"ignore"`
268
269         Valid options: ["ignore","warning","error"]
270
271 - **less.lint.unknownVendorSpecificProperties**:
272
273         Unknown vendor specific property.,  default: `"ignore"`
274
275         Valid options: ["ignore","warning","error"]
276
277 - **less.lint.propertyIgnoredDueToDisplay**:
278
279         Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect,  default: `"warning"`
280
281         Valid options: ["ignore","warning","error"]
282
283 - **less.lint.important**:
284
285         Import statements do not load in parallel,  default: `"ignore"`
286
287         Valid options: ["ignore","warning","error"]
288
289 - **less.lint.float**:
290
291         Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.,  default: `"ignore"`
292
293         Valid options: ["ignore","warning","error"]
294
295 - **less.lint.idSelector**:
296
297         Selectors should not contain IDs because these rules are too tightly coupled with the HTML.,  default: `"ignore"`
298
299         Valid options: ["ignore","warning","error"]
300
301 - **less.lint.unknownAtRules**:
302
303         Unknown at-rule.,  default: `"warning"`
304
305         Valid options: ["ignore","warning","error"]
306
307 - **scss.completion.triggerPropertyValueCompletion**:
308
309         By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior.,  default: `true`
310
311 - **scss.completion.completePropertyWithSemicolon**:
312
313         Insert semicolon at end of line when completing CSS properties,  default: `true`
314
315 - **scss.validate**:
316
317          default: `true`
318
319 - **scss.colorDecorators.enable**:
320
321          default: `true`
322
323 - **scss.lint.compatibleVendorPrefixes**:
324
325          default: `"ignore"`
326
327         Valid options: ["ignore","warning","error"]
328
329 - **scss.lint.vendorPrefix**:
330
331          default: `"warning"`
332
333         Valid options: ["ignore","warning","error"]
334
335 - **scss.lint.duplicateProperties**:
336
337          default: `"ignore"`
338
339         Valid options: ["ignore","warning","error"]
340
341 - **scss.lint.emptyRules**:
342
343          default: `"warning"`
344
345         Valid options: ["ignore","warning","error"]
346
347 - **scss.lint.importStatement**:
348
349          default: `"ignore"`
350
351         Valid options: ["ignore","warning","error"]
352
353 - **scss.lint.boxModel**:
354
355         Do not use width or height when using padding or border,  default: `"ignore"`
356
357         Valid options: ["ignore","warning","error"]
358
359 - **scss.lint.universalSelector**:
360
361          default: `"ignore"`
362
363         Valid options: ["ignore","warning","error"]
364
365 - **scss.lint.zeroUnits**:
366
367          default: `"ignore"`
368
369         Valid options: ["ignore","warning","error"]
370
371 - **scss.lint.fontFaceProperties**:
372
373          default: `"warning"`
374
375         Valid options: ["ignore","warning","error"]
376
377 - **scss.lint.hexColorLength**:
378
379          default: `"error"`
380
381         Valid options: ["ignore","warning","error"]
382
383 - **scss.lint.argumentsInColorFunction**:
384
385          default: `"error"`
386
387         Valid options: ["ignore","warning","error"]
388
389 - **scss.lint.unknownProperties**:
390
391          default: `"warning"`
392
393         Valid options: ["ignore","warning","error"]
394
395 - **scss.lint.ieHack**:
396
397         IE hacks are only necessary when supporting IE7 and older,  default: `"ignore"`
398
399         Valid options: ["ignore","warning","error"]
400
401 - **scss.lint.unknownVendorSpecificProperties**:
402
403          default: `"ignore"`
404
405         Valid options: ["ignore","warning","error"]
406
407 - **scss.lint.propertyIgnoredDueToDisplay**:
408
409          default: `"warning"`
410
411         Valid options: ["ignore","warning","error"]
412
413 - **scss.lint.important**:
414
415          default: `"ignore"`
416
417         Valid options: ["ignore","warning","error"]
418
419 - **scss.lint.float**:
420
421          default: `"ignore"`
422
423         Valid options: ["ignore","warning","error"]
424
425 - **scss.lint.idSelector**:
426
427          default: `"ignore"`
428
429         Valid options: ["ignore","warning","error"]
430
431 - **wxss.validate**:
432
433          default: `true`
434
435 - **wxss.colorDecorators.enable**:
436
437          default: `true`
438
439 - **wxss.lint.compatibleVendorPrefixes**:
440
441          default: `"ignore"`
442
443         Valid options: ["ignore","warning","error"]
444
445 - **wxss.lint.vendorPrefix**:
446
447          default: `"warning"`
448
449         Valid options: ["ignore","warning","error"]
450
451 - **wxss.lint.duplicateProperties**:
452
453          default: `"ignore"`
454
455         Valid options: ["ignore","warning","error"]
456
457 - **wxss.lint.emptyRules**:
458
459          default: `"warning"`
460
461         Valid options: ["ignore","warning","error"]
462
463 - **wxss.lint.importStatement**:
464
465          default: `"ignore"`
466
467         Valid options: ["ignore","warning","error"]
468
469 - **wxss.lint.boxModel**:
470
471          default: `"ignore"`
472
473         Valid options: ["ignore","warning","error"]
474
475 - **wxss.lint.universalSelector**:
476
477          default: `"ignore"`
478
479         Valid options: ["ignore","warning","error"]
480
481 - **wxss.lint.zeroUnits**:
482
483          default: `"ignore"`
484
485         Valid options: ["ignore","warning","error"]
486
487 - **wxss.lint.fontFaceProperties**:
488
489          default: `"warning"`
490
491         Valid options: ["ignore","warning","error"]
492
493 - **wxss.lint.hexColorLength**:
494
495          default: `"error"`
496
497         Valid options: ["ignore","warning","error"]
498
499 - **wxss.lint.argumentsInColorFunction**:
500
501          default: `"error"`
502
503         Valid options: ["ignore","warning","error"]
504
505 - **wxss.lint.unknownProperties**:
506
507          default: `"warning"`
508
509         Valid options: ["ignore","warning","error"]
510
511 - **wxss.lint.ieHack**:
512
513          default: `"ignore"`
514
515         Valid options: ["ignore","warning","error"]
516
517 - **wxss.lint.unknownVendorSpecificProperties**:
518
519          default: `"ignore"`
520
521         Valid options: ["ignore","warning","error"]
522
523 - **wxss.lint.propertyIgnoredDueToDisplay**:
524
525          default: `"warning"`
526
527         Valid options: ["ignore","warning","error"]
528
529 - **wxss.lint.important**:
530
531          default: `"ignore"`
532
533         Valid options: ["ignore","warning","error"]
534
535 - **wxss.lint.float**:
536
537          default: `"ignore"`
538
539         Valid options: ["ignore","warning","error"]
540
541 - **wxss.lint.idSelector**:
542
543     default: `"ignore"`
544
545   Valid options: ["ignore","warning","error"]
546
547 ## License
548
549 MIT