jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.11k stars 373 forks source link

Error is thrown when using auto-pairs in neovim v0.9.0 #366

Open abhiyandhakal opened 1 year ago

abhiyandhakal commented 1 year ago

I have set fillchars in my neovim config as follows: Screenshot_20230515_072453

Following error is thrown when I enter the command :vnew: Screenshot_20230515_072626

After this error comes along, telescope find files also stops working.

I am currently using neovim v0.9.0

abhiyandhakal commented 1 year ago

This error persists even after removing the setting of fillchars.

LunarWatcher commented 1 year ago

Relevant: https://github.com/neovim/neovim/issues/23666 (I know you posted this over on my fork too and that you've probably seen it linked there (or will see, doesn't matter), but leaving it here too seeing as the bug report is in both repos, and this repo still has a lot of users)

VArtzy commented 3 months ago

from function AutoPairsTryInit, Info dictionary doesnt have the rhs key. I am able to fix this with changing variable "old_cr" in "if v:version == 703 && has('patch32') || v:version > 703" if scope with normal CR.

Take a look to my fork