jsonls.lua 301 B

123456789101112131415161718
  1. local opts = {
  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. }
  17. return opts