Skip to content
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

Add support for automatically disabling in certain syntax regions #44

Open
LunarWatcher opened this issue Oct 2, 2021 · 1 comment
Open
Labels
enhancement New feature or request status:Blocked

Comments

@LunarWatcher
Copy link
Owner

This would essentially get rid of g:AutoPairsStringHandlingMode = 2, and make it generic. This should add a variable that defines syntax regions to ignore. If someone decides to include string and comment, auto-pairs shouldn't auto-complete in string or comments. This would also solve parts of #23

A minor caveat here, though, is that it's still beneficial if jumping in strings in particular still works. I.e. "some text|", " at | results in "some text"|, and not "some text"|". Of course, if no jump is available ("some |text", " at |), it should insert a single character ("some "|text")

This may or may not require #41 to be doable; merging to develop is preferred

@LunarWatcher LunarWatcher added enhancement New feature or request Hacktoberfest labels Oct 2, 2021
@LunarWatcher
Copy link
Owner Author

Blocked by vim/vim#8924 for now; synID and synstack aren't viable at a scale without adding group caching, and I just don't want to implement that when there might be better options on the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request status:Blocked
Projects
None yet
Development

No branches or pull requests

1 participant