-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
options: add matchbracestyle
#2876
Conversation
I'd expect the extension of |
36b48ff
to
abc440c
Compare
I also implemented this functionality in #3019, before I noticed that it is already implemented in this PR. This PR's approach is probably better than #3019, since it does not require the user to modify the colorscheme file to enable highlighting of matching braces (since it defaults to highlighting with reverse colors if there are no One note though: perhaps it's better to go a simpler route and, instead of this "generic and extensible" |
The idea and intention is good! But one more thought: |
We might assume this situation will not happen. :) I hardly imagine it. But basically I'm fine with the current version too. |
Upon more thought, actually the toggling feature requested in #2086 could be provided not just for boolean options but for options like So now I have no objections to |
I've just tried this PR myself, and I see a usability problem with it. If there is no
The 2nd issue seems easy to fix: just avoid highlighting a matching brace if the cursor is currently on it. E.g.:
For the 1st issue, it seems we should just add some colors for |
69204ad
to
0163908
Compare
c5aaa01
to
320e71f
Compare
I've noticed one more issue (it can be fixed separately):
when the cursor is on |
@toiletbril: |
Make brace under the cursor have priority over brace to the left in ambiguous cases when matching braces Co-authored-by: Dmitry Maluka <[email protected]>
320e71f
to
7f2a529
Compare
Now that zyedidia/micro#2876 has been merged.
Added
matchbracestyle
option to choose whether to underline or highlight matching braces.