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

Revisit the request for a toggle #35

Closed
windowsrefund opened this issue Jun 24, 2023 · 3 comments
Closed

Revisit the request for a toggle #35

windowsrefund opened this issue Jun 24, 2023 · 3 comments

Comments

@windowsrefund
Copy link

Hello,

Can I ask for #30 to be revisited as an actual toggle would be far more practical. As it stands now, it feels like some amount of code would need to be written in order to determine what to set (true or false). So the real utility of this functionality would come in the form of :UAToggle or require('ultimate-autopair.core').toggle(). If a toggle were made available, one would be able to assign it to a single keymap in order to easily change state.

@altermo
Copy link
Owner

altermo commented Jun 24, 2023

Ok, as for your suggestion, added require'ultimate-autopair'.toggle() (638d2fe)

@windowsrefund
Copy link
Author

Thank you!

@windowsrefund
Copy link
Author

Thanks again for supplying this. I just PR'd AstroNvim/astrocommunity#314 which uses this.

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

2 participants