b0o / SchemaStore.nvim

🛍 JSON schemas for Neovim
https://schemastore.org
Apache License 2.0
726 stars 18 forks source link

TOML support #25

Closed zyriab closed 7 months ago

zyriab commented 7 months ago

Any chance to get TOML support? According to the TOML docs, it supports JSON schema.

I'd be happy to help :)

b0o commented 7 months ago

I'm open to this, but the taplo docs don't specify if it supports a similar configuration strategy to jsonls/yamlls. In both of those LSPs, you can pass a list of JSON schemas in the LSP configuration. Reading through the taplo docs, I can't find anything about this.

If you look into this further and report back how we can pass the list of schemas to taplo, I'm happy to help add support to SchemaStore.nvim.

zyriab commented 7 months ago

Hey @b0o, thanks for the quick answer! I'll look into it :) I've found this in the taplo-lsp rust docs but I'm not sure I'm looking at the right place.

Have a good one!

zyriab commented 7 months ago

Apparently taplo uses the SchemaStore catalog by default, sorry for wasting your time :D