How to not have diagnostic error in a json file with comments?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • coc.nvim

    Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

  • According to this wiki on CoC about configuration file what you want is vim-jsonc plugin.

  • vim-jsonc

    Discontinued ⚠️Deprecated⚠️: Vim syntax highlighting plugin for JSON with C-style line (//) and block (/* */) comments.

  • According to this wiki on CoC about configuration file what you want is vim-jsonc plugin.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • nvim-lspinstall

    Discontinued Provides the missing :LspInstall for nvim-lspconfig

  • I am using lspinstall to install language server. It uses this json-language-server. As the docs says jsonc is supported and it allows comments in jsonc filetypes but the lsp is not showing diagnostic if I make any other syntax error. On line 34 i have removed a comma and still lsp showing no diagnostic error in jsonc file.

  • Visual Studio Code

    Visual Studio Code

  • I am using lspinstall to install language server. It uses this json-language-server. As the docs says jsonc is supported and it allows comments in jsonc filetypes but the lsp is not showing diagnostic if I make any other syntax error. On line 34 i have removed a comma and still lsp showing no diagnostic error in jsonc file.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts