blob: 7b8ef542f45e6eb0b2b53ae14c3bff85bedc7bbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local lsp_attach = require "alpha.lsp.attach"
local lsp_flags = require "alpha.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
|