LunarVim/lua/lsp/emmet-ls.lua

24 lines
579 B
Lua
Raw Normal View History

-- if not package.loaded['lspconfig'] then
-- return
-- end
2021-07-09 14:07:25 +02:00
local nvim_lsp = require "lspconfig"
local configs = require "lspconfig/configs"
2021-04-15 06:17:48 +02:00
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
configs.emmet_ls = {
default_config = {
2021-07-09 14:07:25 +02:00
cmd = { "emmet-ls", "--stdio" },
2021-07-11 15:37:59 +02:00
filetypes = { "html", "css", "javascript", "typescript", "vue" },
2021-04-15 06:17:48 +02:00
root_dir = function()
return vim.loop.cwd()
2021-07-09 14:07:25 +02:00
end,
settings = {},
},
2021-04-15 06:17:48 +02:00
}
2021-07-09 14:07:25 +02:00
nvim_lsp.emmet_ls.setup {
2021-04-15 06:17:48 +02:00
-- on_attach = on_attach;
}