json: add support of schemastore schemas
Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
d15338beb4
commit
8993a005d9
7
init.lua
7
init.lua
|
@ -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 },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
-- Plugin for schemastore
|
||||||
|
-- https://github.com/b0o/SchemaStore.nvim
|
||||||
|
|
||||||
|
return {
|
||||||
|
"b0o/schemastore.nvim",
|
||||||
|
}
|
Loading…
Reference in New Issue