emmet-vim icon indicating copy to clipboard operation
emmet-vim copied to clipboard

css expansion does not seem to be working

Open minusf opened this issue 1 year ago • 2 comments

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'

minusf avatar May 26 '23 12:05 minusf

What the filetype?

mattn avatar May 26 '23 15:05 mattn

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)?

minusf avatar May 28 '23 22:05 minusf