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 })