Поддержка ru_RU
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
-- Инициализация "neovim/nvim-lspconfig"
|
||||
local lspconfig = require('lspconfig')
|
||||
|
||||
-- Активация вещания готовых набросков
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
@@ -8,12 +11,27 @@ local coq = require('coq')
|
||||
-- Инициализация LSP-серверов
|
||||
|
||||
-- Инициализация "psalm" (LSP-сервер для PHP)
|
||||
require('lspconfig').psalm.setup {
|
||||
lspconfig.psalm.setup {
|
||||
on_attach = lspconfig_on_attach,
|
||||
coq.lsp_ensure_capabilities()
|
||||
}
|
||||
|
||||
-- Инициализация "vscode-html-language-server" (готовый набросок для HTML)
|
||||
require('lspconfig').html.setup {
|
||||
lspconfig.html.setup {
|
||||
on_attach = lspconfig_on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
|
||||
-- Инициализация "vscode-langservers-extracted" (готовый набросок для JavaScript и PostScript)
|
||||
lspconfig.eslint.setup({
|
||||
on_attach = function(client, bufnr)
|
||||
-- Инициализация команды "EslintFixAll"
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
buffer = bufnr,
|
||||
command = "EslintFixAll",
|
||||
})
|
||||
|
||||
-- Вызов глобальной функции
|
||||
lspconfig_on_attach(client, bufnr)
|
||||
end,
|
||||
})
|
||||
|
Reference in New Issue
Block a user