mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(cmp): visible
This commit is contained in:
parent
e2972f0cca
commit
57ef349910
1 changed files with 3 additions and 2 deletions
|
@ -71,8 +71,9 @@ function M.add_missing_snippet_docs(window)
|
|||
end
|
||||
|
||||
function M.visible()
|
||||
local ok, cmp = pcall(require, "cmp")
|
||||
return ok and cmp.core.view:visible()
|
||||
---@module 'cmp'
|
||||
local cmp = package.loaded["cmp"]
|
||||
return cmp and cmp.core.view:visible()
|
||||
end
|
||||
|
||||
-- This is a better implementation of `cmp.confirm`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue