Skip to content

Commit

Permalink
fix: fallback show_documentation when window open
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 28, 2024
1 parent e82c1b7 commit bc311b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ cmp.select_next = function()
end

cmp.show_documentation = function()
if cmp.windows.documentation.win:is_open() then return end
local item = cmp.windows.autocomplete.get_selected_item()
if not item then return end
vim.schedule(function() cmp.windows.documentation.show_item(item) end)
Expand Down

0 comments on commit bc311b7

Please sign in to comment.