Skip to content

Commit

Permalink
fix: reset documentation scroll on new item
Browse files Browse the repository at this point in the history
closes #239
  • Loading branch information
Saghen committed Nov 4, 2024
1 parent aeaa2e7 commit cd3aa32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/blink/cmp/windows/documentation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function docs.show_item(item)

if autocomplete.win:get_win() then
docs.win:open()
vim.api.nvim_win_set_cursor(docs.win:get_win(), { 1, 0 }) -- reset scroll
docs.update_position()
end
end)
Expand Down

0 comments on commit cd3aa32

Please sign in to comment.