my demo first config lua
This commit is contained in:
14
lua/alpha/lsp/servers/html.lua
Normal file
14
lua/alpha/lsp/servers/html.lua
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user