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

fix(signature): use char_under_cursor in on_char_added handler #935

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

ohogb
Copy link
Contributor

@ohogb ohogb commented Jan 7, 2025

char from the on_char_added handler, which was used before, doesn't represent the character under the cursor in some situations, such as when using an autopairs plugin.

Fixes #909

`char` from the `on_char_added` handler, which was used before, doesn't
represent the character under the cursor in some situations, such as
when using an autopairs plugin.

Fixes Saghen#909
@Saghen Saghen merged commit 275d407 into Saghen:main Jan 7, 2025
2 checks passed
@Saghen
Copy link
Owner

Saghen commented Jan 7, 2025

Thank you!

@ohogb ohogb deleted the fix/signature-char-under-cursor branch January 7, 2025 18:27
peter-bread added a commit to peter-bread/peter.nvim that referenced this pull request Jan 8, 2025
No longer need hacky approach to get signature help to work.
Turns out the issue was to do with autopairs.

See Saghen/blink.cmp#935
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

Successfully merging this pull request may close these issues.

Signature doesn't trigger with autopairs
2 participants