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

Commit 3cffa5b

Browse files
committed
fix: issues in auto signature help
1 parent 92f26db commit 3cffa5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/completion.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ function M.on_CompleteDone()
201201
if manager.confirmedCompletion then
202202
manager.confirmedCompletion = false
203203
hasConfirmedCompletion()
204+
-- auto trigger signature help when we confirm completion
205+
if vim.g.completion_enable_auto_signature ~= 0 then
206+
signature.autoOpenSignatureHelp()
207+
end
204208
end
205209
if hover.winnr ~= nil and api.nvim_win_is_valid(hover.winnr) then
206210
api.nvim_win_close(hover.winnr, true)
207211
end
208-
-- auto trigger signature help when we confirm completion
209-
if vim.g.completion_enable_auto_signature ~= 0 then
210-
signature.autoOpenSignatureHelp()
211-
end
212212
end
213213

214214
M.on_attach = function(option)

0 commit comments

Comments
 (0)