jamestthompson3 / nvim-remote-containers

Develop inside docker containers, just like VSCode
Other
876 stars 26 forks source link

jsonc decoding with treesitter #11

Closed nscotto closed 2 years ago

nscotto commented 2 years ago

Remove comments and trailing whitespaces from json using treesitter before calling json_decode. VSCode uses jsonc (json with comments) in its configuration files sometimes breaking calls to neovim json_decode.

This PR adds dependency to jsonc parser for treesitter.

jamestthompson3 commented 2 years ago

Thanks for this!