helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
31.15k stars 2.3k forks source link

Using the built-in emmet tools in vue-language-server #11000

Closed overbyte closed 1 week ago

overbyte commented 1 week ago

Hi

I'm attempting to get emmet to handle self-closing tags in .vue files.

When using the emmet-language-server I got the following result when trying self/ and then hitting tab:

In a JSX file: jsx

In a vue file: vue

I asked this question in the emmet-language-server (https://github.com/olrtg/emmet-language-server/issues/41) and the answer was that emmet is bundled with the vue language tools already so another emmet lsp shouldn't be necessary.

I tried to use emmet from the bundled tools in the same way - by removing the "emmet-lsp" from the vue language config

[[language]]
name = "vue"
language-servers = [ "vue-language-server", "emmet-lsp"]

however when i test it in the <template> in an sfc by adding SelfClosing/ and hitting tab, nothing happens.

I have also tried using the autocomplete (ctrl-x in INSERT mode) and the "code action" in NORMAL mode (space-a) but neither had any affect

Do you have any insight on how to use the tool please?

thanks ;oB