altermo / ultimate-autopair.nvim

A treesitter supported autopairing plugin with extensions, and much more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Revisit the request for a toggle

windowsrefund opened this issue · comments

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.

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

Thank you!

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