mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-12 02:14:37 +02:00
feat(ai): better completion/suggestions of AI engines
This commit is contained in:
parent
86904d2fb1
commit
b2e012cb83
6 changed files with 110 additions and 37 deletions
|
@ -7,7 +7,7 @@ function M.cmp_source(name, icon)
|
|||
if not package.loaded["cmp"] then
|
||||
return
|
||||
end
|
||||
for _, s in ipairs(require("cmp").core.sources) do
|
||||
for _, s in ipairs(require("cmp").core.sources or {}) do
|
||||
if s.name == name then
|
||||
if s.source:is_available() then
|
||||
started = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue