Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css expansion does not seem to be working #552

Open
minusf opened this issue May 26, 2023 · 2 comments
Open

css expansion does not seem to be working #552

minusf opened this issue May 26, 2023 · 2 comments

Comments

@minusf
Copy link

minusf commented May 26, 2023

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
Copy link
Owner

mattn commented May 26, 2023

What the filetype?

@minusf
Copy link
Author

minusf commented May 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants