| 123456789101112131415161718192021222324252627282930 | local schemas = nillocal status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")if status_ok then  schemas = jsonls_settings.get_default_schemas()endlocal opts = {  setup = {    settings = {      json = {        schemas = schemas,        --   = {        --   {        --     fileMatch = { "package.json" },        --     url = "https://json.schemastore.org/package.json",        --   },        -- },      },    },    commands = {      Format = {        function()          vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })        end,      },    },  },}return opts
 |