4 ms·
But... so do yaml and json documents?
by wredcoll 1y ago
But... so do yaml and json documents?
- lmm 1y ago> so do yaml and json documents? Not really. There are optional ways to add schema but nothing that's established enough to rely on.
- wredcoll 1y agoI mean, I don't want to get into a debate about semantics, but when I open config.json files or kubernetes.yaml files in neovim, i get tab completed fields and values as well as inline errors about unsupported entries. That seems to qualify in my book.
- lmm 1y agoInteresting - but is that because neovim has specifically added support for those formats (i.e. you've got some kind of Kubernetes-specific highlighting, not just generic yaml highlighting code?)
- wredcoll 1y agoIn this case it comes in via the coc plugin, which in turn has a plugin named coc-json, which, among other things, tries to download "well known" json schemas although now that I think about I'm not sure where those live. Edit: apparently it just has popular ones built in: https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/api/json/catalog.json https://raw.githubusercontent.com/SchemaStore/schemastore/ma...