-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emmet support #1896
Comments
There are some Emmet LSPs from a cursory search, so I suppose when snippet support (#395) lands it'll be as easy as setting the LSP. Though right now we only allow a single LSP per buffer so that might need some overhaul to allow both the Emmet server and HTML server to work together. Alternatively i wonder if the HTML server has built-in support for Emmet. |
@sudormrfbin Unless I’m missing something at least VSCodes HTML LSP doesn’t seem to have Emmet included. I did find https://github.com/aca/emmet-ls but I haven’t tested it. I did notice with the VSCode HTML LSP in Helix that some completions don’t work properly. e.g., |
The |
I have the same issue, whenever helix autocompletes tag it inserts $0, any way to fix it? |
Hello @iljarotar, I've been using the multi lsp patch for some time, have a few lsp's configured but cannot get emmet-ls working, would you mind sharing your config? I am surely missing something, just setting the EDIT:
|
I can also confirm that I've got emmet-ls mostly working with this snippet in my [language-server.emmet-ls]
args = ["--stdio"]
command="emmet-ls"
[[language]]
name = "html"
language-servers = ["vscode-html-language-server", "emmet-ls"] ...however, I'm noticing that upon selecting an Emmet completion, I get an "unhandled method" error for I've opened a PR here to emmet-ls to set Please add to the conversation on that PR if you have more context on the right way to handle |
Another option is https://github.com/olrtg/emmet-language-server I haven't tried it personally yet but it is included in nvim-lspconfig(which is how I found it) |
Nice find, looks like a good approach will probably give it a try in the next few days. Recent setup with emmet-ls works well, but not using it heavily. |
nor my typescript-language-server, nor vscode-html-server, works |
Works great. Just waiting for surround to support enough chars to trigger emmet's tags so wrapping elements can be a breeze. |
I can't seem to get my This is what it looks like: [language-server.emmet-ls]
args = ["--stdio"]
command = "emmet-ls"
[[language]]
name = "html"
language-servers = ["vscode-html-language-server", "emmet-ls"] And it keeps throwing this error:
|
@BambooRaptor it looks to me like you are using an older version of helix. The field |
@iljarotar praise the lord! You were right! I had helix double installed from chocolatey and winget and while the winget version is 24.07 (latest as far as I can tell), chocolatey version was 23.03 which is wha the path was picking up! Thanks! |
Emmet is a productivity boost when working with HTML.
It’s one of those things I feel I will miss from VSCode.
I have no idea how difficult/feasible it would be to implement.
The text was updated successfully, but these errors were encountered: