The ULTIMATE AUTOPAIR plugin

The ULTIMATE AUTOPAIR plugin

Intro

The ULTIMATE AUTOPAIR plugin, finally an autopair plugin with everything one needs. This plugin aims to provide as many features as possible for inserting pairs. Some say that it is a bit bloated, I can’t argue with that. Extending the plugin is easy both vertically and horizontally.

What it can do

  • Cmd-line support
  • Filters both inside and outside of strings (with treesitter)
  • Doesn’t add unbalanced pairs
  • Creating pairs with rules
  • Fastwarp support
  • Space, backspace, and newline support
  • Almost everything is can be configured
  • And so much more

Examples

  • Smart pair |()) > ( > (|())
  • Fly over other parentheses ([{|}] ) > ) > ([{}] )|
  • Surround string |'foo' > ( > ('foo')
  • Smart escape quote '\|a' > ' > '\'|\'a'
  • Delete multi-char /*|*/ > <BS> > |
  • Fastwarp (|){1,2},foo > <A-e> > ({1,2}|),foo > <A-e> > ({1,2},foo|)
  • String filter | ")" > ( > (|) ")"
  • Don’t be stupid |) > ) > )|)
2 Likes

Nice. Maybe something for This Week In Neovim?

See How to contribute

1 Like

I’ve tried it and I like it but it seems it doesn’t work with dot repeat - at least not with the default configuration I’m using at the moment …

A few changes and the plugin now supports dot-repeat.

Wow that was fast!
Thanks a lot :smiley: