mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 10:48:45 +02:00
fix(lualine): dont load copilot when not available. Fixes #872
This commit is contained in:
parent
9c1a5620ed
commit
5ed3250f24
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ return {
|
||||||
return ok and #clients > 0
|
return ok and #clients > 0
|
||||||
end,
|
end,
|
||||||
color = function()
|
color = function()
|
||||||
|
if not package.loaded["copilot"] then
|
||||||
|
return
|
||||||
|
end
|
||||||
local status = require("copilot.api").status.data
|
local status = require("copilot.api").status.data
|
||||||
return colors[status.status] or colors[""]
|
return colors[status.status] or colors[""]
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue