2023-02-14 16:40:45 +07:00
|
|
|
-- Инициализация "neovim/nvim-lspconfig"
|
|
|
|
local lspconfig = require('lspconfig')
|
|
|
|
|
2023-02-14 05:12:39 +07:00
|
|
|
-- Активация вещания готовых набросков
|
|
|
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
|
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
|
|
|
2023-02-14 04:58:56 +07:00
|
|
|
-- Инициализация "ms-jpq/coq_nvim"
|
2023-02-11 19:56:38 +07:00
|
|
|
local coq = require('coq')
|
|
|
|
|
2023-02-14 04:58:56 +07:00
|
|
|
-- Инициализация LSP-серверов
|
|
|
|
|
2023-02-23 05:08:31 +07:00
|
|
|
-- Инициализация "intelephense" (LSP-сервер для PHP)
|
|
|
|
lspconfig.intelephense.setup({
|
|
|
|
on_attach = lspconfig_on_attach,
|
|
|
|
coq.lsp_ensure_capabilities(),
|
|
|
|
capabilities = capabilities
|
2023-02-22 22:29:44 +07:00
|
|
|
})
|
2023-02-14 05:12:39 +07:00
|
|
|
|
2023-02-26 20:05:20 +07:00
|
|
|
-- Инициализация "vscode-html-language-server" (LSP-сервер для HTML)
|
2023-02-22 22:29:44 +07:00
|
|
|
lspconfig.html.setup({
|
2023-02-14 16:40:45 +07:00
|
|
|
on_attach = lspconfig_on_attach,
|
2023-02-23 05:08:31 +07:00
|
|
|
coq.lsp_ensure_capabilities(),
|
2023-02-14 05:12:39 +07:00
|
|
|
capabilities = capabilities
|
2023-02-22 22:29:44 +07:00
|
|
|
})
|
|
|
|
|
2023-02-26 20:05:20 +07:00
|
|
|
-- Инициализация "vscode-html-language-server" (LSP-сервер для CSS)
|
2023-02-22 22:29:44 +07:00
|
|
|
lspconfig.cssls.setup({
|
|
|
|
on_attach = lspconfig_on_attach,
|
2023-02-23 05:08:31 +07:00
|
|
|
coq.lsp_ensure_capabilities(),
|
2023-02-22 22:29:44 +07:00
|
|
|
capabilities = capabilities
|
|
|
|
})
|
2023-02-14 16:40:45 +07:00
|
|
|
|
2023-02-26 20:05:20 +07:00
|
|
|
-- Инициализация "vscode-langservers-extracted" (LSP-сервер для JavaScript и PostScript)
|
|
|
|
lspconfig.denols.setup({
|
|
|
|
on_attach = lspconfig_on_attach,
|
|
|
|
coq.lsp_ensure_capabilities(),
|
|
|
|
capabilities = capabilities
|
2023-02-14 16:40:45 +07:00
|
|
|
})
|
2023-02-22 22:29:44 +07:00
|
|
|
|
2023-02-26 20:05:20 +07:00
|
|
|
-- Инициализация "vscode-langservers-extracted" (LSP-сервер для JSON)
|
2023-02-22 22:29:44 +07:00
|
|
|
lspconfig.jsonls.setup({
|
|
|
|
on_attach = lspconfig_on_attach,
|
2023-02-23 05:08:31 +07:00
|
|
|
coq.lsp_ensure_capabilities(),
|
|
|
|
capabilities = capabilities
|
2023-02-22 22:29:44 +07:00
|
|
|
})
|