olrtg / emmet-language-server

A language server for emmet.io
https://www.npmjs.com/package/@olrtg/emmet-language-server
MIT License
285 stars 8 forks source link

abbr for <style> tag in HTML #35

Closed nocis closed 8 months ago

nocis commented 9 months ago

not sure how to resolve it without vscode parser, but I managed to resolve it via a stupid way.

I started 2 emmet-language-server instances for html file, one doComplete with html, one do css. you can easily config this via autocmd. ref:https://github.com/microsoft/vscode/issues/28039

One flaw is that you will get 2 abbr suggestions messed your comp.

olrtg commented 8 months ago

Hey! I see, well I see what I can do this weekend.

nocis commented 8 months ago

Hey! I see, well I see what I can do this weekend.

Thanks for replying! I think the difficulty is that microsoft/vscode-emmet-helper only accept one syntax a time, they addressed this problem relaying on VSCode's internal parser to decide which syntax should be completed.

For nvim, I guess we need to either check if the position between