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

Commit 8caf29d

Browse files
committed
fix: ignore focusable hover(#63)
1 parent 77a6029 commit 8caf29d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lua/completion/hover.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ M.focusable_float = function(unique_name, fn)
3030
do
3131
local win = find_window_by_var(unique_name, bufnr)
3232
if win then
33-
if vim.g.completion_enable_focusable_hover == 0 then
34-
api.nvim_win_close(win, true)
35-
else
36-
api.nvim_set_current_win(win)
37-
api.nvim_command("stopinsert")
38-
return
39-
end
33+
api.nvim_win_close(win, true)
4034
end
4135
end
4236
local pbufnr, pwinnr = fn()

0 commit comments

Comments
 (0)