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

Feature: Optional auto-closing of delimiters #1946

Merged
merged 3 commits into from
Jun 3, 2022
Merged

Conversation

benthor
Copy link
Contributor

@benthor benthor commented Jun 2, 2022

This PR adds optional auto-closing of opening brackets, braces and parentheses. It's off by default but can be enabled by setting AUTO_DELIMITERS to true in config.lua. If enabled, this feature will simply insert the matching closing symbol in the direction of the (advancing) cursor whenever an opening bracket, brace or parenthesis is entered.

(Background: This feature was primarily motivated to ease development of Fennel code, where it is most useful. Lua users might be less interested but could still find it helpful)

Copy link
Owner

@nesbox nesbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.
Pls add yourself to the credits list.

@nesbox nesbox merged commit ce73669 into nesbox:main Jun 3, 2022
@benthor benthor mentioned this pull request Jun 3, 2022
nesbox added a commit that referenced this pull request Jun 3, 2022
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.

2 participants