Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit a684d85

Browse files
authored
Merge pull request #198 from glepnir/patch-1
auto tigger signature help window when completedone.
2 parents f7256f2 + f3707ee commit a684d85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/completion.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ function M.on_CompleteDone()
205205
if hover.winnr ~= nil and api.nvim_win_is_valid(hover.winnr) then
206206
api.nvim_win_close(hover.winnr, true)
207207
end
208+
-- auto trigger signature help when we confirm completion
209+
if vim.g.completion_enable_auto_signature ~= 0 then
210+
vim.lsp.buf.signature_help()
211+
end
208212
end
209213

210214
M.on_attach = function(option)

0 commit comments

Comments
 (0)