Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / Readme.md
1 # coc-json
2
3 Json language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).
4
5 The server code is extracted from VSCode, which uses
6 [vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice)
7
8 ## Install
9
10 In your vim/neovim, run the following command:
11
12 ```
13 :CocInstall coc-json
14 ```
15
16 ## Features
17
18 Same as VSCode.
19
20 All features of [vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice) are supported.
21
22 - `doCompletion` for JSON properties and values based on the document's JSON schema.
23 - `doHover` for values based on descriptions in the document's JSON schema.<Paste>
24 - Document Symbols for quick navigation to properties in the document.
25 - Document Colors for showing color decorators on values representing colors.
26 - Code Formatting supporting ranges and formatting the whole document.
27 - Diagnostics (Validation) are pushed for all open documents
28   - syntax errors
29   - structural validation based on the document's JSON schema.
30
31 ## Commands
32
33 - `json.retryResolveSchema`: Retry resolve schema of current buffer.
34
35 ## Configuration options
36
37 - `json.enable` set to `false` to disable json language server.
38 - `json.trace.server` trace LSP traffic in output channel.
39 - `json.execArgv` add `execArgv` to `child_process.fork` used for start
40   json language server.
41 - `json.format.enable` set to `false` to disable format.
42 - `json.schemas` schema associations for json files.
43
44 ## FAQ
45
46 ### How to suppress error `[json 521] [e] Comments are not permitted in JSON`?
47
48 You can configure your vim to make that file with jsonc filetype to allow comment.
49
50 ### How to add custom schema definitions/properties?
51
52 You have two choices:
53
54 - use `$schema` in your json.
55 - create json schema file and then configure `json.schemes` in your `coc-settings.json`, check out https://github.com/neoclide/coc-json/blob/master/package.json#L55
56
57 ### Quotes are hidden?
58
59 This is not caused by coc-json, you may checkout the `conceallevel` option.
60
61 ## License
62
63 MIT