hlissner / zsh-autopair

Auto-close and delete matching delimiters in zsh
MIT License
509 stars 37 forks source link

autopair don't work with vi-mode open #39

Closed AhJi26 closed 2 months ago

AhJi26 commented 2 months ago

What did you expect to happen?

I'm using this script as a plugin of oh-my-zsh, but as long as I enable the vi-mode plugin, this plugin just stop working.

What actually happened?

as above

Describe your attempts to resolve the issue

No response

Steps to reproduce

  1. install oh-my-zsh
  2. install this project as plugin
  3. enable oh-my-zsh built-in plugin vi-mode

Package commit

34a90da77a00b152b12e908504b5f41f45340b15

System Information

No response

hlissner commented 2 months ago

I don't use oh-my-zsh, so I can't help here, but it seems others are using it without issue. I suggest tinkering with the load order of your plugins, because other plugins could be overwriting this one's hooks (e.g. try loading zsh-autopair before/after vi-mode).

AhJi26 commented 2 months ago

Thanks a lot.🙏 I reverse the order of vi-mode and this plugin in zshrc and it works fine.

AhJi26 commented 2 months ago

For someone suffering from the same problem, all you need to do is load this plugin after vi-mode.