blob: d673a2630c306f916b5e4a2d21ff6d01d56221e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if not require("cfg.utils").check_lsp_client_active "html" then
-- npm install -g vscode-html-languageserver-bin
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
require("lspconfig").html.setup {
cmd = {
"node",
DATA_PATH .. "/lspinstall/html/vscode-html/html-language-features/server/dist/node/htmlServerMain.js",
"--stdio",
},
on_attach = require("cfg.lsp").common_on_attach,
capabilities = capabilities,
}
end
vim.cmd "setl ts=2 sw=2"
|