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

Bad interaction with smartparens #27

Open
eklitzke opened this issue Dec 10, 2020 · 0 comments
Open

Bad interaction with smartparens #27

eklitzke opened this issue Dec 10, 2020 · 0 comments

Comments

@eklitzke
Copy link

I am using smartparens, and one of the things smartparens does (which I generally) like is that after typing an opening " character a closing " is automatically added for me after the point. Suppose I'm in a C or C++ source file and I type #include "absl/container/flat_. The current point will be set to just after the _ character but just before the closing " character that smartparens added. The company auto completions will now be flat_hash_map.h" and flat_hash_set.h". If I hit enter to finish the completion company will helpfully insert the closing " character for me which conflicts with the one provided by smartparens. I have a video demonstrating the issue here (you can skip to about 0:20 to see the issue): https://asciinema.org/a/qIaBt8o31OgqBFyBzzonx2QIH

Is it possible to detect if the point is currently within a quoted form, and then not suggest completions with a redundant closing quote? I'm honestly not sure if this is an issue with company-c-headers or company itself. I'm far from an expert in elisp but I could try to figure this out myself with some guidance on what to look for to try to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant