summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/html.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/ftplugin/html.lua')
-rw-r--r--.config/nvim/ftplugin/html.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/ftplugin/html.lua b/.config/nvim/ftplugin/html.lua
new file mode 100644
index 0000000..312301b
--- /dev/null
+++ b/.config/nvim/ftplugin/html.lua
@@ -0,0 +1,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"