m4xshen/autoclose.nvim

autoclose inserts a closing bracket even when editing a string

Closed this issue · 2 comments

I have no idea if this is fixable, but it's a little annoying to remove the not-required bracket each time I edit a string and want to insert a bracket or something similar
Still, this is a good plugin, keep up the good work!

@ggoraa You can always insert a single character (without triggering the plugin) if you enter <C-v><character>. For example, <C-v>(.

See :help i_CTRL-V.

Edit: also, you can disable autoclose per character. This is great, if you regularly want to enter a certain character without the autoclose feature. See here. You just need to set close = false for the character or characters that is a problem for you.

@telemachus thanks for the detail explanation. The <C-v> trick is pretty brilliant!