summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/html.lua
blob: 312301b17211cbe0977a7372320f8298beb827b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- 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("lsp").common_on_attach,
  capabilities = capabilities,
}
vim.cmd "setl ts=2 sw=2"