json: add support of schemastore schemas

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2024-03-20 14:00:05 +01:00
parent 60c7aacd4e
commit de01104408
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 13 additions and 0 deletions

View File

@ -495,7 +495,14 @@ local servers = {
-- Require vscode-langservers-extracted -- Require vscode-langservers-extracted
-- https://github.com/hrsh7th/vscode-langservers-extracted -- https://github.com/hrsh7th/vscode-langservers-extracted
-- Configure schemastore to be used
jsonls = { jsonls = {
settings = {
json = {
schemas = require('schemastore').json.schemas(),
validate = { enable = true },
},
},
}, },
} }

View File

@ -0,0 +1,6 @@
-- Plugin for schemastore
-- https://github.com/b0o/SchemaStore.nvim
return {
"b0o/schemastore.nvim",
}