diff --git a/lua/lspconfig/server_configurations/emmet_language_server.lua b/lua/lspconfig/server_configurations/emmet_language_server.lua new file mode 100644 index 0000000000..32639d0275 --- /dev/null +++ b/lua/lspconfig/server_configurations/emmet_language_server.lua @@ -0,0 +1,38 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'emmet-language-server', '--stdio' }, + filetypes = { + 'astro', + 'css', + 'eruby', + 'html', + 'htmldjango', + 'javascriptreact', + 'less', + 'pug', + 'sass', + 'scss', + 'svelte', + 'typescriptreact', + 'vue', + }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/olrtg/emmet-language-server + +Package can be installed via `npm`: +```sh +npm install -g @olrtg/emmet-language-server +``` +]], + default_config = { + root_dir = 'git root', + single_file_support = true, + }, + }, +}