m4xshen/autoclose.nvim

Make touch regex configurable

Closed this issue · 1 comments

I'd like to supress autoclose not only for alphanum characters to the right of the cursor. This could be easily achieved if the %w regex here would be configurable:

config.options.disable_when_touch
and (pair .. "_"):sub(2, 2):match("%w")

Add touch_regex option in fb1530a. Thanks for the feedback!