RinRi-D a30576f93f | 4 år sedan | |
---|---|---|
.. | ||
data | 4 år sedan | |
lib | 4 år sedan | |
Readme.md | 4 år sedan | |
package.json | 4 år sedan | |
sync.sh | 4 år sedan |
Json language server extension for coc.nvim.
The server code is extracted from VSCode, which uses vscode-json-languageservice
In your vim/neovim, run the following command:
:CocInstall coc-json
Same as VSCode.
All features of vscode-json-languageservice are supported.
doCompletion
for JSON properties and values based on the document’s JSON schema.doHover
for values based on descriptions in the document’s JSON schema.json.retryResolveSchema
: Retry resolve schema of current buffer.json.enable
set to false
to disable json language server.json.trace.server
trace LSP traffic in output channel.json.execArgv
add execArgv
to child_process.fork
used for start
json language server.json.format.enable
set to false
to disable format.json.schemas
schema associations for json files.[json 521] [e] Comments are not permitted in JSON
?You can configure your vim to make that file with jsonc filetype to allow comment.
You have two choices:
$schema
in your json.json.schemes
in your coc-settings.json
, check out https://github.com/neoclide/coc-json/blob/master/package.json#L55This is not caused by coc-json, you may checkout the conceallevel
option.
MIT