Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
neovim-config/lua/user/lsp/settings/jsonls.lua

18 lines
348 B
Lua

local status_ok, lspconfig = pcall(require, "lspconfig")
if not status_ok then
return
end
local schemastore_status_ok, schemastore = pcall(require, "schemastore")
if not schemastore_status_ok then
return
end
lspconfig.jsonls.setup({
settings = {
json = {
schemas = schemastore.json.schemas(),
validate = { enable = true },
},
},
})