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

incorrect scss colors? #227

Closed
tylerfowle opened this issue Feb 16, 2018 · 3 comments
Closed

incorrect scss colors? #227

tylerfowle opened this issue Feb 16, 2018 · 3 comments

Comments

@tylerfowle
Copy link

seems to be weird behavior with scss syntax. not quite sure why the different types of propertys are different colors, seems like they are kinda grouped into display/position, border, other, unknown. Is this intentional?

but specifically ->
flex properties are white
flex-direction and flex-wrap are all white.
the color black isnt the same as other colors such as red, white, or variables $green

see attached screenshot.

screen shot 2018-02-16 at 4 25 18 pm

@christianhegedues
Copy link

It seems you have an outdated css.vim syntax file and this cause the white flexbox properties. Try to update to a newer vim version, mine is 8.0.1700, and the flexbox properties should be fixed.

The different colors for some groups are defined in gruvbox.vim and you can override them with putting the highlight group you want to modify after your colorscheme in your .vimrc

colorscheme gruvbox
highlight link cssPositioningProp GruvboxAqua
highlight link cssBorderProp GruvboxAqua

To get a list of all available highlight groups for a specific language take a look at the syntax file e.g. /usr/local/Cellar/vim/8.0.1700/share/vim/vim80/syntax, if you using homebrew

@tylerfowle
Copy link
Author

tylerfowle commented Jun 8, 2018

@christianhegedues im actually running Neovim v0.2.2

@tylerfowle
Copy link
Author

I've installed https://github.com/JulesWang/css.vim and that seems to fix the issue

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