We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7c5d9 commit 99129b6Copy full SHA for 99129b6
lua/blink/cmp/completion/windows/menu.lua
@@ -52,7 +52,10 @@ function menu.open_with_items(context, items)
52
if not menu.renderer then menu.renderer = require('blink.cmp.completion.windows.render').new(config.draw) end
53
menu.renderer:draw(menu.win:get_buf(), items)
54
55
- if menu.auto_show then menu.open() end
+ if menu.auto_show then
56
+ menu.open()
57
+ menu.update_position()
58
+ end
59
end
60
61
function menu.open()
@@ -62,7 +65,6 @@ function menu.open()
62
65
if menu.selected_item_idx ~= nil then
63
66
vim.api.nvim_win_set_cursor(menu.win:get_win(), { menu.selected_item_idx, 0 })
64
67
- menu.update_position()
68
69
menu.open_emitter:emit()
70
0 commit comments