jsonls.lua 283 B

12345678910111213141516
  1. return {
  2. settings = {
  3. json = {
  4. schemas = require("schemastore").json.schemas(),
  5. },
  6. },
  7. setup = {
  8. commands = {
  9. Format = {
  10. function()
  11. vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line("$"), 0 })
  12. end,
  13. },
  14. },
  15. },
  16. }