chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

is there a working possiblity to have this feature working automatically? #79

Closed joe23rep closed 4 years ago

joe23rep commented 4 years ago

like the title says id like to have this feature on without typing :ColorHighlight everytime i want to use it.

i know i could come up with a shortcut for it but i like it so id like to have it autostarted.

everything i tried so far didnt work out

chrisbra commented 4 years ago

Have you read the help?

Am 11.01.2020 um 01:56 schrieb joe23rep notifications@github.com:

 like the title says id like to have this feature on without typing :ColorHighlight everytime i want to use it.

i know i could come up with a shortcut for it but i like it so id like to have it autostarted.

everything i tried so far didnt work out

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chrisbra commented 4 years ago

possible duplicate of #78

Goku-San commented 4 years ago

Hello @chrisbra @joe23rep , I run in to this problem a while ago, and I manage to solve it by putting this in my .vimrc autocmd BufEnter,BufLeave *.css,*.scss,*.sass :ColorHighlight! and it works like a charm, no flickering and only for those file extensions.

I deducted this from @daveyarwood 's answer on 77

Hope this helps as a future reference.

Edit -> Just to clarify, I only have that one setting for Colorizer as plugin, nothing else!

daveyarwood commented 4 years ago

I think we can probably close this as a duplicate of #77, as I'm trying to work toward the same objective. :)

kopr12 commented 4 years ago

In my case this works let g:colorizer_auto_color = 1 but you have to move the vim cursor and the colors will appear after 3 seconds.