chore: remove dead code. Closes #4985

This commit is contained in:
Folke Lemaitre 2024-12-10 12:09:38 +01:00
parent 4b86cf9900
commit 1519cd6da7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -100,20 +100,6 @@ function M.add_missing_snippet_docs(window)
end
end
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'
local cmp = package.loaded["cmp"]
if cmp then
return cmp.core.view:visible()
end
return false
end
-- This is a better implementation of `cmp.confirm`:
-- * check if the completion menu is visible without waiting for running sources
-- * create an undo point before confirming