From 33ee1969d1fe9c0ee5b86145c1e1bc5f81d2fe34 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Mon, 6 Dec 2021 15:10:18 -0800 Subject: [PATCH] feat(lsp): remove jsonls settings --- lua/cosmic/lsp/providers/init.lua | 2 -- lua/cosmic/lsp/providers/jsonls.lua | 49 ----------------------------- 2 files changed, 51 deletions(-) delete mode 100644 lua/cosmic/lsp/providers/jsonls.lua diff --git a/lua/cosmic/lsp/providers/init.lua b/lua/cosmic/lsp/providers/init.lua index 56fb00c..b127676 100644 --- a/lua/cosmic/lsp/providers/init.lua +++ b/lua/cosmic/lsp/providers/init.lua @@ -55,8 +55,6 @@ lsp_installer.on_server_ready(function(server) -- set up default cosmic options if server.name == 'tsserver' then opts = vim.tbl_deep_extend('force', opts, require('cosmic.lsp.providers.tsserver')) - elseif server.name == 'jsonls' then - opts = vim.tbl_deep_extend('force', opts, require('cosmic.lsp.providers.jsonls')) elseif server.name == 'sumneko_lua' then opts = vim.tbl_deep_extend('force', opts, require('cosmic.lsp.providers.lua')) end diff --git a/lua/cosmic/lsp/providers/jsonls.lua b/lua/cosmic/lsp/providers/jsonls.lua deleted file mode 100644 index 370a5f8..0000000 --- a/lua/cosmic/lsp/providers/jsonls.lua +++ /dev/null @@ -1,49 +0,0 @@ -return { - settings = { - json = { - -- Schemas https://www.schemastore.org - schemas = { - { - fileMatch = { 'package.json' }, - url = 'https://json.schemastore.org/package.json', - }, - { - fileMatch = { 'tsconfig*.json' }, - url = 'https://json.schemastore.org/tsconfig.json', - }, - { - fileMatch = { - '.prettierrc', - '.prettierrc.json', - 'prettier.config.json', - }, - url = 'https://json.schemastore.org/prettierrc.json', - }, - { - fileMatch = { '.eslintrc', '.eslintrc.json' }, - url = 'https://json.schemastore.org/eslintrc.json', - }, - { - fileMatch = { '.babelrc', '.babelrc.json', 'babel.config.json' }, - url = 'https://json.schemastore.org/babelrc.json', - }, - { - fileMatch = { 'lerna.json' }, - url = 'https://json.schemastore.org/lerna.json', - }, - { - fileMatch = { 'now.json', 'vercel.json' }, - url = 'https://json.schemastore.org/now.json', - }, - { - fileMatch = { - '.stylelintrc', - '.stylelintrc.json', - 'stylelint.config.json', - }, - url = 'http://json.schemastore.org/stylelintrc.json', - }, - }, - }, - }, -}