Skip to content

Commit bc311b7

Browse files
committed
fix: fallback show_documentation when window open
1 parent e82c1b7 commit bc311b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/blink/cmp/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ cmp.select_next = function()
183183
end
184184

185185
cmp.show_documentation = function()
186+
if cmp.windows.documentation.win:is_open() then return end
186187
local item = cmp.windows.autocomplete.get_selected_item()
187188
if not item then return end
188189
vim.schedule(function() cmp.windows.documentation.show_item(item) end)

0 commit comments

Comments
 (0)