Skip to content

Commit

Permalink
Use args.buf formake_position_params
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Feb 23, 2024
1 parent 208cf42 commit ee6b262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autocomplete/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ local function cursor_moved(args)
-- Try to find signature help trigger character in current line
for _, c in ipairs(client.server_capabilities.signatureHelpProvider.triggerCharacters or {}) do
if string.find(before_line, '[' .. c .. ']') then
local params = vim.lsp.util.make_position_params(0, client.offset_encoding)
local params = vim.lsp.util.make_position_params(args.buf, client.offset_encoding)
params.context = {
triggerKind = vim.lsp.protocol.CompletionTriggerKind.TriggerCharacter,
triggerCharacter = c,
Expand Down

0 comments on commit ee6b262

Please sign in to comment.