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

Conflict between junegunn/rainbow_parentheses.vim, cakebaker/scss-syntax.vim and ap/vim-css-color #82

Open
ap opened this issue Nov 6, 2016 · 1 comment
Labels

Comments

@ap
Copy link
Owner

ap commented Nov 6, 2016

[Reported by @JulioJu in skammer/vim-css-color#25]

Hi,

With the vimrc at the end of this message, ap/vim-css-color doesn't work correctly. Colors are highlighted when the line is commented. For example in a css file named test.css only line three — commented — is correctly highlighted. It's strange, because "Plug 'cakebaker/scss-syntax.vim', { 'for': ['sass', 'scss'] }" tells 'cakebaker/scss-syntax.vim' is only activated in sass or scss files, but this bug impacts also css files.

In the fallowing vimrc, if we remove only plugin https://github.com/kien/rainbow_parentheses.vim OR https://github.com/cakebaker/scss-syntax.vim', vim-css-color works correctly.

The fork https://github.com/gko/vim-coloresque works fine with 'https://github.com/cakebaker/scss-syntax.vim' and 'https://github.com/kien/rainbow_parentheses.vim'.

/* test.css */
div {
/*	color:red; */
color: red;
}
" vimrc
call plug#begin('~/.vim/plugged')

" Rainbow_parentheses.vim
" https://github.com/kien/rainbow_parentheses.vim
" Better Rainbow Parentheses
Plug 'junegunn/rainbow_parentheses.vim'

" CSS color
" Highlight colors in css files
" Plug 'skammer/vim-css-color'
Plug 'ap/vim-css-color'

" scss-syntax.vim
" https://github.com/cakebaker/scss-syntax.vim
" Vim syntax file for scss (Sassy CSS)
Plug 'cakebaker/scss-syntax.vim', { 'for': ['sass', 'scss'] }

call plug#end()
filetype plugin indent on

let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
au BufEnter * RainbowParentheses
@ap ap added the bug label Nov 6, 2016
@swyckoff
Copy link

Experiencing the same conflict with https://github.com/kien/rainbow_parentheses.vim. Using https://github.com/gko/vim-coloresque works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants