diff options
author | Abouzar Parvan <[email protected]> | 2021-10-04 15:48:35 +0330 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-04 15:48:35 +0330 |
commit | 8fb404f7d6f449ff4a0e3d361de0e4e85e81ab4e (patch) | |
tree | d6dbb353398e4a1ff3ba606ec79f8191ca279527 | |
parent | 6443f156d762cd64ac857c34f10843404f0dffde (diff) |
fix: bring back NlspConfig completion (#1682)
-rw-r--r-- | lua/lsp/providers/jsonls.lua | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/lua/lsp/providers/jsonls.lua b/lua/lsp/providers/jsonls.lua index 4fa92af4..72c67b47 100644 --- a/lua/lsp/providers/jsonls.lua +++ b/lua/lsp/providers/jsonls.lua @@ -130,10 +130,6 @@ local schemas = { url = "https://json.schemastore.org/golangci-lint.json", }, { - description = "JSON Schema for Grafana 5.x Dashboards", - url = "https://json.schemastore.org/grafana-dashboard-5.x.json", - }, - { description = "JSON schema for the JSON Feed format", fileMatch = { "feed.json", @@ -159,10 +155,6 @@ local schemas = { url = "https://json.schemastore.org/package.json", }, { - description = "Traefik v2 Dynamic Configuration File Provider", - url = "https://json.schemastore.org/traefik-v2-file-provider.json", - }, - { description = "JSON schema for Visual Studio component configuration files", fileMatch = { "*.vsconfig", @@ -186,18 +178,16 @@ end local extended_schemas = extend(schemas, default_schemas) local opts = { - setup = { - settings = { - json = { - schemas = extended_schemas, - }, - }, - commands = { - Format = { - function() - vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 }) - end, - }, + settings = { + json = { + schemas = extended_schemas, + }, + }, + commands = { + Format = { + function() + vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 }) + end, }, }, } |