aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/html.lua
blob: b20553b1999be0713700208a42fd1a3eda52f4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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