0

https://github.com/withastro/language-tools/tree/main/packages/language-server

I have installed the language server above in neovim.

The language server comes with emmet support, but I can't seem to get it to work.

How can I enable emmet in .astro files?

romainl
  • 186,200
  • 21
  • 280
  • 313
cusX
  • 470
  • 1
  • 6
  • 17

1 Answers1

2

Open VSCode global settings then search for emmet. Scroll to Emmet: Include Languages section and click on Add Item

enter image description here

add astro on the left and html to the right. Restart VSCode and now you can use emmet tab in .astro files

j.limjinda
  • 128
  • 2
  • 6
  • Doesn't work for me unfortunately. Have also noticed that vscode doesn't seem to recognise .astro as any sort of file type (ie there's no astro icon by the files), so it might be that – NickW Aug 26 '23 at 11:07