From 9e43ba9054551bef58cc85ad0b1a93b617cd61f6 Mon Sep 17 00:00:00 2001 From: mirzaev Date: Thu, 23 Feb 2023 08:08:31 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D1=81=20psalm=20=D0=BD=D0=B0=20intelephense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/lspconfig.lua | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index 524b0bf..43eb929 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -11,20 +11,30 @@ local coq = require('coq') -- Инициализация LSP-серверов -- Инициализация "psalm" (LSP-сервер для PHP) -lspconfig.psalm.setup({ +--[[ lspconfig.psalm.setup({ on_attach = lspconfig_on_attach, - coq.lsp_ensure_capabilities() + coq.lsp_ensure_capabilities(), + capabilities = capabilities +}) ]] + +-- Инициализация "intelephense" (LSP-сервер для PHP) +lspconfig.intelephense.setup({ + on_attach = lspconfig_on_attach, + coq.lsp_ensure_capabilities(), + capabilities = capabilities }) -- Инициализация "vscode-html-language-server" (готовый набросок для HTML) lspconfig.html.setup({ on_attach = lspconfig_on_attach, + coq.lsp_ensure_capabilities(), capabilities = capabilities }) -- Инициализация "vscode-html-language-server" (готовый набросок для CSS) lspconfig.cssls.setup({ on_attach = lspconfig_on_attach, + coq.lsp_ensure_capabilities(), capabilities = capabilities }) @@ -40,14 +50,12 @@ lspconfig.eslint.setup({ -- Вызов глобальной функции lspconfig_on_attach(client, bufnr) end, + coq.lsp_ensure_capabilities() }) -- Инициализация "vscode-langservers-extracted" (готовый набросок для JSON) lspconfig.jsonls.setup({ on_attach = lspconfig_on_attach, - capabilities = capabilities, - filetypes = { - 'json', - 'log' - } + coq.lsp_ensure_capabilities(), + capabilities = capabilities })