Skip to content

Conversation

tomaneo
Copy link
Contributor

@tomaneo tomaneo commented Apr 27, 2025

Matching parenthesis highlighting was not very useful in vi insert mode, because it didn't highlight the opening parenthesis for just inserted closing parenthesis. Only after switching back to normal mode you could see the matching pair highlighted.

This patch changes insert mode behaviour to use parenthesis before the cursor as the highlighted pair in insert mode. This way it is also similar to emacs mode.

Before the patch:
parens-original

After the patch:
parens-improved

@cxxxr cxxxr merged commit ca1a898 into lem-project:main Jun 22, 2025
2 checks passed
@vindarel
Copy link
Collaborator

Thank you!! This was making editing harder.

@tomaneo tomaneo deleted the paren-match-insert branch June 24, 2025 08:33
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

Successfully merging this pull request may close these issues.

3 participants