-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-insert pair for pairs starting with \ #325
Comments
Last I checked, it only ignores pairs that are prefixed with a \. As an immediate hack, that means |
|
Looked into it - there's a fundamental flaw in pair escaping that essentially disables single-byte pairs with a preceding backslash. Looking into patching it |
I've (theoretically) fixed this -- you'll need to switch to my fork to use it, though (I'd merge it in, but the original maintainer is missing; there's other issues pointing this out in case you need to verify). Don't mind the CI error, that's just the Mac VM for some reason not starting -- blame GitHub. You don't need to escape the backslash in the close pair, though. Works fine with: let g:AutoPairs = autopairs#AutoPairsDefine([{'open': '\\[', 'close': '\]', 'filetype': 'tex'}]) ( |
( |
The bugfix hasn't been tagged yet (upd.: has been tagged now) - make sure you're using the master branch and not a tagged version like the readme recommends (it's usually fine, just not while testing fixes to bugs) |
I use auto-pairs for autocompleting "(" : ")", "[" : "]", "{" : "}". I was wondering if there was any way for me to auto-complete "\[" : "\]" when I am writing latex. Same with "\(" : "\)". I read that it disables auto-completion when the pairs start with "\". Is there any way to disable that? Thanks.
The text was updated successfully, but these errors were encountered: