jiangmiao / auto-pairs

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

Disabling specific auto pairs doesn't work #340

Closed Yugeniki closed 2 years ago

Yugeniki commented 2 years ago

It says in documentation I should be able to disable globally via let g:AutoPairs but it doesn't work, it also says I should be able to disable for file types via something like au filetype vim let b:AutoPairs = {'(':')', '[':']', '{':'}', '``':"''"} but that also doesn't work, help?

LunarWatcher commented 2 years ago

Works fine for me. What's your config like?

Yugeniki commented 2 years ago

image image The relevant parts are like this but ` still works. as does ' and "

LunarWatcher commented 2 years ago

This isn't nvim-autopairs - auto-pairs is probably overridden by the other plugin, if you're using both. In that case, pick one and stick to it. Otherwise, you're probably looking for https://github.com/windwp/nvim-autopairs

Yugeniki commented 2 years ago

Oh, sorry for the bother.