json: add support of schemastore schemas

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2024-03-20 14:00:05 +01:00
parent d15338beb4
commit 8993a005d9
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",
}