mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 01:38:54 +02:00
chore: remove dead code. Closes #4985
This commit is contained in:
parent
4b86cf9900
commit
1519cd6da7
1 changed files with 0 additions and 14 deletions
|
@ -100,20 +100,6 @@ function M.add_missing_snippet_docs(window)
|
||||||
end
|
end
|
||||||
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`:
|
-- This is a better implementation of `cmp.confirm`:
|
||||||
-- * check if the completion menu is visible without waiting for running sources
|
-- * check if the completion menu is visible without waiting for running sources
|
||||||
-- * create an undo point before confirming
|
-- * create an undo point before confirming
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue