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

FT: signature hint close and toggle functions #242

Merged
merged 2 commits into from
May 7, 2024

Conversation

daveriedstra
Copy link
Contributor

Adds functions to scnvim.signature to close and toggle the signature hint popup per discussion on #238.

@@ -101,7 +102,7 @@ local function show_signature(object)
local signature = res:match '%((.+)%)'
if signature then
if float then
lsp_util.open_floating_preview({ signature }, 'supercollider', float_conf)
_, hint_winid = lsp_util.open_floating_preview({ signature }, 'supercollider', float_conf)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps

local _, id = lsp_util.open_floating_preview({ signature }, 'supercollider', float_conf)
hint_winid = id

just to keep the linter happy

@davidgranstrom
Copy link
Owner

Thanks for the PR, works great! I hope the comment I left you will resolve the linter error, i'll merge this once the CI has passed.

@davidgranstrom davidgranstrom merged commit 4777c0d into davidgranstrom:main May 7, 2024
4 checks passed
@salkin-mada
Copy link
Contributor

Nice! Thanks @daveriedstra and @davidgranstrom

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.

3 participants