Skip to content
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

Disable arbitrary tag names #55

Open
tomasz13nocon opened this issue Mar 15, 2023 · 8 comments
Open

Disable arbitrary tag names #55

tomasz13nocon opened this issue Mar 15, 2023 · 8 comments

Comments

@tomasz13nocon
Copy link

Right now asdf expands into <asdf></asdf>.
Is there a way to disable that and only expand valid HTML tags?

@asirago
Copy link

asirago commented Mar 21, 2023

Did you find a way to disable it? I'm reading the docs to try to figure it out, if you haven't I'll type my solution here

@tomasz13nocon
Copy link
Author

No, I have not.
I'd love to see your solution.

@olrtg
Copy link
Collaborator

olrtg commented Apr 12, 2023

Hey! I'll see what I can do this weekend.

@Cryxto
Copy link

Cryxto commented Apr 14, 2023

Yes, please. This things is kinda anoying. Btw thx for the contribution @olrtg

@wassimk
Copy link

wassimk commented May 8, 2023

I just started using Emmet and am running into this as well. I understand it's normal behavior, but some find having a single completion snippet for anything you type is noisy. VS Code only does this for anything that starts with a capital letter, assuming it's a component name. For reference, here is a function they made to stop potentially noisy behavior:

microsoft/vscode-emmet-helper@1359d5d#diff-6ba93ba22e5dca6759dd4e914b378f91a6fb1e50ef4d713e4a0569c2b879ac01L309-L334

@olrtg
Copy link
Collaborator

olrtg commented Jun 30, 2023

I've tried to fix this but it was a lot more complicated than I thought but ended up building https://github.com/olrtg/emmet-ls which fixes this problem and for sure improves other things since it reuses vscode's integration with emmet.

zenoli pushed a commit to zenoli/zenovim that referenced this issue Apr 17, 2024
Note: There are two language servers available for emmet:

We used to use:
https://github.com/aca/emmet-ls

but this makes suggestions for arbitrary words ("asdf" --> <asdf></asdf>) which is annoying.

This is not the case with:
https://github.com/olrtg/emmet-language-server

See this thread for more info:
aca/emmet-ls#55
zenoli pushed a commit to zenoli/zenovim that referenced this issue Jun 13, 2024
Note: There are two language servers available for emmet:

We used to use:
https://github.com/aca/emmet-ls

but this makes suggestions for arbitrary words ("asdf" --> <asdf></asdf>) which is annoying.

This is not the case with:
https://github.com/olrtg/emmet-language-server

See this thread for more info:
aca/emmet-ls#55
@sebalfaro
Copy link

Hi @olrtg, i'm stucked with the same error, can i ask you how did you build https://github.com/olrtg/emmet-lsin order to fix the error?

@olrtg
Copy link
Collaborator

olrtg commented Jul 18, 2024

@sebalfaro that's a whole separate project, another language server. Go to the docs to see how you can use it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants