aboutsummaryrefslogtreecommitdiff
path: root/lsp/jsonls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/jsonls.lua')
-rw-r--r--lsp/jsonls.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lsp/jsonls.lua b/lsp/jsonls.lua
index c6c0776..321dda6 100644
--- a/lsp/jsonls.lua
+++ b/lsp/jsonls.lua
@@ -1,8 +1,13 @@
+---@diagnostic disable: missing-fields, inject-field
+
+---@type vim.lsp.ClientConfig
return {
settings = {
json = {
- schemas = require('schemastore').json.schemas(),
validate = { enable = true },
},
},
+ before_init = function (_, config)
+ config.settings.json.schemas = require("schemastore").json.schemas()
+ end,
}