pojokcodeid.nvim-lazy/lua/user/lsp/settings_backup/jsonls.lua

20 lines
299 B
Lua
Raw Normal View History

2024-10-20 17:21:07 +07:00
return {
settings = {
json = {
schemas = require("schemastore").json.schemas(),
},
},
setup = {
commands = {
Format = {
function()
vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line("$"), 0 })
end,
},
},
},
init_options = {
provideFormatter = false,
},
}