26 lines
621 B
Lua
26 lines
621 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({
|
|
on_attach = require("user.lsp.handlers").on_attach,
|
|
capabilities = require("user.lsp.handlers").capabilities,
|
|
settings = {
|
|
json = {
|
|
schemas = require("schemastore").json.schemas(),
|
|
validate = { enable = true },
|
|
},
|
|
},
|
|
})
|
|
|
|
require("user.lsp.handlers").setup()
|
|
require("user.lsp.installer")
|
|
require("user.lsp.nullls")
|
|
require("user.lsp.nlsp")
|
|
require("user.lsp.signature")
|