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

Sass using vim-emmet issue #23

Closed
mickeylin opened this issue May 13, 2020 · 2 comments
Closed

Sass using vim-emmet issue #23

mickeylin opened this issue May 13, 2020 · 2 comments

Comments

@mickeylin
Copy link

When I used vim-emmet in tag <style lang="sass">

I expect when I type t20px it should be

card
   top: 20px

but it is

card
  t20px {
  
  }

Sass syntax is correct. It seems that vim-emmet dosen't determine the filetype is sass
Even it is declared in the style tag
If it works, it will be perfect to me!

@leafOfTree
Copy link
Owner

leafOfTree commented May 13, 2020

Hi, thanks for reporting the sass issue. It requires both plugins to be updated.

I've updated sass syntax name in this plugin. Also, I created a PR mattn/emmet-vim#485. But it's not sure if it will get merged. So if you like, you can modify your local emmet-vim:
emmet-vim/autoload/emmet.vim, about line 393

  if type =~? '^css'
    let type = 'css'
+ elseif type =~? '^sass'
+   let type = 'sass'
  elseif type =~? '^html'
    let type = 'html'

@mickeylin
Copy link
Author

Thanks for fast response and updating. It works!
What a awesome plugin!

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