emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
253 stars 29 forks source link

CSS completions clash with CSS3 package #157

Closed ryboe closed 3 years ago

ryboe commented 3 years ago

It used to be possible to disable Emmet's CSS completions with this setting.

"show_css_completions": false

That setting has been removed from Emmet 2 AFAICT. Is it possible to disable CSS completions in the new version of Emmet?

I'm the maintainer of CSS3, which is the 44th most installed Sublime plugin. CSS3's completions clash with Emmet's to the point that the packages can't both be enabled at the same time in CSS files. I've been directing my users to set show_css_completions: false for a long time, but that no longer works. Do you have any suggestions about how our packages can better coexist? Thanks!

sergeche commented 3 years ago

There’s a number of ways to disable abbreviations: https://github.com/emmetio/sublime-text-plugin#disable-abbreviation-capturing

sergeche commented 3 years ago

Basically, Emmet now acts as autocomplete provider so it can better integrate with ST and other packages. There’s a complete description of how CSS support works in Emmet and how it can be tuned for better experience: https://github.com/emmetio/sublime-text-plugin#css-support

ryboe commented 3 years ago

Thank you for the info! If I understand correctly, I should direct my users to set "abbreviation_preview": "markup" to disable completions for CSS only. Is that correct?

sergeche commented 3 years ago

abbreviation_preview disables interactive preview yet still captures abbreviation and it will be expanded by Tab. Another option is to set "auto_mark": "markup" to disabled automatic abbreviation capturing. In this case, user can expand abbreviation only via dedicated shortcut like Ctrl-E