From bc311b756ca89652bfb18b07a99ff52f424d63a2 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Mon, 28 Oct 2024 16:22:50 -0400 Subject: [PATCH] fix: fallback show_documentation when window open --- lua/blink/cmp/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/blink/cmp/init.lua b/lua/blink/cmp/init.lua index 994deccd..b9894f61 100644 --- a/lua/blink/cmp/init.lua +++ b/lua/blink/cmp/init.lua @@ -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)