Skip to content

Commit

Permalink
fix(lualine): dont load copilot when not available. Fixes #872
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 2, 2023
1 parent 9c1a562 commit 5ed3250
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazyvim/plugins/extras/coding/copilot.lua
Expand Up @@ -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,
Expand Down

0 comments on commit 5ed3250

Please sign in to comment.