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

Only highlight surrounding parentheses? #15

Closed
anntzer opened this issue Jan 14, 2017 · 3 comments
Closed

Only highlight surrounding parentheses? #15

anntzer opened this issue Jan 14, 2017 · 3 comments

Comments

@anntzer
Copy link

anntzer commented Jan 14, 2017

emacs' highlight-parentheses (https://www.emacswiki.org/emacs/HighlightParentheses) only color-highlights all pairs of delimiters that are surrounding the current cursor position, using different colors for different levels. Would it be possible to provide a similar behavior in this plugin?

(As far as I can see there is no plugin that provides this behavior for vim right now; the closest I have found is https://github.com/justinmk/vim-matchparenalways, which only highlights the closest surrounding pair.)

Thanks in advance.

@lervag
Copy link

lervag commented Feb 13, 2017

There was a discussion on reddit about this, recently, see here. I would also be interested in using a good rainbow-parantheses plugin that only highlights actually surrounding parantheses, and think this would be a very good addition to this plugin.

@anntzer
Copy link
Author

anntzer commented Feb 14, 2017

@lervag https://github.com/bounceme/poppy.vim (which was published after I started the reddit thread) works very well for me. I use the colors of https://github.com/losingkeys/vim-niji, which are quite flashy, but much more visible (and that's sort of the point...) than the rest of my preferred colorscheme (zenburn), which is very low contrast. I also use the mapping given in the README.

@junegunn
Copy link
Owner

Glad to hear that you found the solution. I personally don't need it and have no plan to work on it, so let me close 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

3 participants