config/.config/nvim/lua/user/lsp/settings/jsonls.lua

25 lines
437 B
Lua

local status_ok, schemastore = pcall(require, "schemastore")
if not status_ok then
return
end
return {
init_options = {
provideFormatter = false,
},
settings = {
json = {
schemas = schemastore.json.schemas(),
},
},
setup = {
commands = {
-- Format = {
-- function()
-- vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
-- end,
-- },
},
},
}