Skip to content

Commit

Permalink
locally scope temporary vars
Browse files Browse the repository at this point in the history
  • Loading branch information
daveriedstra committed May 7, 2024
1 parent e0e1fda commit c64967e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/scnvim/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ local function show_signature(object)
local signature = res:match '%((.+)%)'
if signature then
if float then
_, hint_winid = lsp_util.open_floating_preview({ signature }, 'supercollider', float_conf)
local _, id = lsp_util.open_floating_preview({ signature }, 'supercollider', float_conf)
hint_winid = id
else
print(signature)
end
Expand Down

0 comments on commit c64967e

Please sign in to comment.