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"