Closed casprwang closed 7 years ago
Css completion is already registered by the ncm. You can't register it twice.
Use g:cm_sources_override
, override cm-css
source's scopes
field.
Works, you've made my day!
FWIW:
let g:cm_sources_override = {
\ 'cm-css': {'scopes': ['css', 'scss', 'javascript', 'jsx', 'javascript.jsx']}
\ }
It's pretty useful for CSS-in-js
tools like Styled components, I can add the example into readme for clarification if you want.
here's what I've tried without luck
and