mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
fix: cmp.visible
This commit is contained in:
parent
e48a6a0278
commit
f188c5729e
1 changed files with 5 additions and 5 deletions
|
@ -71,16 +71,16 @@ function M.add_missing_snippet_docs(window)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.visible()
|
function M.visible()
|
||||||
|
---@module 'blink.cmp'
|
||||||
|
local blink = package.loaded["blink.cmp"]
|
||||||
|
if blink then
|
||||||
|
return blink.windows and blink.windows.autocomplete.win:is_open()
|
||||||
|
end
|
||||||
---@module 'cmp'
|
---@module 'cmp'
|
||||||
local cmp = package.loaded["cmp"]
|
local cmp = package.loaded["cmp"]
|
||||||
if cmp then
|
if cmp then
|
||||||
return cmp.core.view:visible()
|
return cmp.core.view:visible()
|
||||||
end
|
end
|
||||||
---@module 'blink.cmp'
|
|
||||||
local blink = package.loaded["blink.cmp"]
|
|
||||||
if blink then
|
|
||||||
return blink.windows.autocomplete.win:is_open()
|
|
||||||
end
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue