m4xshen/autoclose.nvim

How can I prevent it from autoclosing when the previous carachter is a letter?

Opened this issue · 3 comments

Hund commented

Typing the word Can't will result in Can't'. How can I prevent this from happening?

Came here for the same question!

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.

Not quite the sought after fix, but I've been happy since disabling auto-pairing of single quotes ('). I only really need the plugin for parentheses and brackets anyway.

See: https://github.com/m4xshen/autoclose.nvim?tab=readme-ov-file#-configuration > Example: Remove the escape function...