3 Json language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).
5 The server code is extracted from VSCode, which uses
6 [vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice)
10 In your vim/neovim, run the following command:
20 All features of [vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice) are supported.
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
29 - structural validation based on the document's JSON schema.
33 - `json.retryResolveSchema`: Retry resolve schema of current buffer.
35 ## Configuration options
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
41 - `json.format.enable` set to `false` to disable format.
42 - `json.schemas` schema associations for json files.
46 ### How to suppress error `[json 521] [e] Comments are not permitted in JSON`?
48 You can configure your vim to make that file with jsonc filetype to allow comment.
50 ### How to add custom schema definitions/properties?
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
57 ### Quotes are hidden?
59 This is not caused by coc-json, you may checkout the `conceallevel` option.