Skip to content
Json language extension for coc.nvim
TypeScript JavaScript
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
data remove extra comma (#16) Nov 11, 2019
src Remove duplicate argument "--node-ipc" Sep 12, 2019
.gitignore Ignore node_modules/ Sep 12, 2019
.npmignore use webpack Jun 17, 2019 fix doc of execArgv Oct 26, 2019
package.json Release 1.2.4 Oct 26, 2019
tsconfig.json use webpack Jun 17, 2019
tslint.json init Sep 7, 2018
webpack.config.js use webpack Jun 17, 2019


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.
  • Document Symbols for quick navigation to properties in the document.
  • Document Colors for showing color decorators on values representing colors.
  • Code Formatting supporting ranges and formatting the whole document.
  • Diagnostics (Validation) are pushed for all open documents
    • syntax errors
    • structural validation based on the document's JSON schema.

Configuration options

  • 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.


How to suppress error [json 521] [e] Comments are not permitted in JSON?

You can configure your vim to make that file with jsonc filetype to allow comment.

How to add custom schema definitions/properties?

You have two choices:

Quotes are hidden?

This is not caused by coc-json, you may checkout the conceallevel option.



You can’t perform that action at this time.