diff --git a/lua/autocomplete/signature.lua b/lua/autocomplete/signature.lua index ca53212..ff5a0ce 100644 --- a/lua/autocomplete/signature.lua +++ b/lua/autocomplete/signature.lua @@ -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,