altermo / ultimate-autopair.nvim

A treesitter supported autopairing plugin with extensions, and much more
MIT License
488 stars 4 forks source link

Revisit the request for a toggle #35

Closed windowsrefund closed 1 year ago

windowsrefund commented 1 year ago

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 commented 1 year ago

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

windowsrefund commented 1 year ago

Thank you!

windowsrefund commented 1 year ago

Thanks again for supplying this. I just PR'd https://github.com/AstroNvim/astrocommunity/pull/314 which uses this.