Skip to content

Commit cd3aa32

Browse files
committed
fix: reset documentation scroll on new item
closes #239
1 parent aeaa2e7 commit cd3aa32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/blink/cmp/windows/documentation.lua

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function docs.show_item(item)
6969

7070
if autocomplete.win:get_win() then
7171
docs.win:open()
72+
vim.api.nvim_win_set_cursor(docs.win:get_win(), { 1, 0 }) -- reset scroll
7273
docs.update_position()
7374
end
7475
end)

0 commit comments

Comments
 (0)