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

Enable coloring from the 2nd occurrence of parenthesis, bracket etc? #74

Open
ev-agelos opened this issue Apr 18, 2017 · 5 comments
Open

Comments

@ev-agelos
Copy link

ev-agelos commented Apr 18, 2017

My use case is that i only have 1 level of parenthesis, bracket etc in the file I am working on and I don't want your plugin to kick in yet

My colorscheme shows them white, but while using your plugin shows them blue which breaks the colorscheme so my suggestion would be to start coloring from the 2nd occurrence of parenthesis,bracket etc

(I hope it is not something else broke in my configs :|)

@ev-agelos ev-agelos changed the title Enable coloring from the 2nd nested parenthesis, bracket etc? Enable coloring from the 2nd occurrence of parenthesis, bracket etc? Apr 18, 2017
@luochen1990
Copy link
Owner

In fact, I did a lot of work to make the first level of text highlighted ...

Maybe this should be provided as an option...

Hoping for some Pull Request to solve this problem :)

PS: this plugin allows you to disable it for specific filetype or enable it for specific filetype, hoping this can help you a little :)

@ahmedelgabri
Copy link

(Sorry for reviving an old thread) But I came here with the same issue & I was wondering if changing the patterns can help? I tried this but it doesn't work

'parentheses': ['start=/(/(/ end=/)/)/ fold', 'start=/\[/\[/ end=/\]/\]/ fold', 'start=/{/{/ end=/}/}/ fold'],

@luochen1990
Copy link
Owner

If you just don't like the default color, you can config it yourself.

@ahmedelgabri
Copy link

If you just don't like the default color, you can config it yourself.

I know, but I'd like this to be handled by the colorscheme, any idea how to do this? otherwise I need to do this manually every time I change the colorscheme.

@luochen1990
Copy link
Owner

Add the following to your vimrc, see readme.md for more details.

	let g:rainbow_conf = {
	\	'guifgs': ['white', 'darkorange3', 'seagreen3', 'firebrick'],
	\	'ctermfgs': ['white', 'lightyellow', 'lightcyan', 'lightmagenta'],
	\}

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

No branches or pull requests

3 participants