aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pi/lsp/servers/html.lua')
-rw-r--r--lua/pi/lsp/servers/html.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/pi/lsp/servers/html.lua b/lua/pi/lsp/servers/html.lua
new file mode 100644
index 0000000..b20553b
--- /dev/null
+++ b/lua/pi/lsp/servers/html.lua
@@ -0,0 +1,14 @@
+local lsp_attach = require "pi.lsp.attach"
+local lsp_flags = require "pi.lsp.flags"
+
+return function(ops)
+ local config = {
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ }
+ if vim.fn.executable "html-languageserver" == 1 then
+ config.cmd = { "html-languageserver", "--stdio" }
+ end
+
+ return vim.tbl_extend("force", config, ops)
+end