Skip to content

Commit

Permalink
fix: incorrect active param for some lsp. Fixes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 29, 2022
1 parent ddbad47 commit c7f1fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/lsp/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function M:active_parameter(sig_index)
if self.activeParameter and sig.parameters[self.activeParameter + 1] then
return sig.parameters[self.activeParameter + 1]
end
return sig.parameters and sig.parameters[1] or 1
return sig.parameters and sig.parameters[1] or nil
end

---@param sig SignatureInformation
Expand Down

0 comments on commit c7f1fca

Please sign in to comment.