From 8fb404f7d6f449ff4a0e3d361de0e4e85e81ab4e Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Mon, 4 Oct 2021 15:48:35 +0330 Subject: fix: bring back NlspConfig completion (#1682) --- lua/lsp/providers/jsonls.lua | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'lua/lsp') 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 @@ -129,10 +129,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 = { @@ -158,10 +154,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 = { @@ -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, }, }, } -- cgit v1.2.3