vim-css-color icon indicating copy to clipboard operation
vim-css-color copied to clipboard

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

Open ap opened this issue 9 years ago • 1 comments

[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 avatar Nov 06 '16 09:11 ap

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

swyckoff avatar Feb 25 '17 23:02 swyckoff