mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +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
|
||||
end,
|
||||
color = function()
|
||||
if not package.loaded["copilot"] then
|
||||
return
|
||||
end
|
||||
local status = require("copilot.api").status.data
|
||||
return colors[status.status] or colors[""]
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue