summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp/providers/jsonls.lua
blob: 76aea25fce864e8dfb05550f53e635220c59ce5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local opts = {
  settings = {
    json = {
      schemas = require("schemastore").json.schemas(),
    },
  },
  setup = {
    commands = {
      Format = {
        function()
          vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
        end,
      },
    },
  },
}

return opts