mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.39k stars 411 forks source link

css expansion does not seem to be working #552

Open minusf opened 1 year ago

minusf commented 1 year ago

when trying any of the examples from the doc, all shorthands are expanded into html tags:

expected effect from :he emmet:

  <style type="text/css">
  .page {
      m|
  }
  </style>

  become

  <style type="text/css">
  .page {
      margin: |;
  }
  </style>

actual result:

  <style type="text/css">
  .page {
      <m>|</m>
  }
  </style>

neovim 0.9.0 latest emmet with installed with Plug 'mattn/emmet-vim'

mattn commented 1 year ago

What the filetype?

minusf commented 1 year ago

for the snippet above i tried html. now i have explicitly tried css and when the cursor is between curly braces it seems to work.

i think i am mainly confused because g:user_emmet_install_global is by default true and html tags expand anywhere, in any filetype but not the css shortcuts. is this by design? if yes, maybe the documentation could be a bit more clear about it.

how can i make the css shortcuts expand in html files (for the style attribute)?