fix(copilot.lua): changed endpoint for lualine status

This commit is contained in:
Antoine Gaudreau Simard 2025-04-06 11:48:23 -04:00
parent ec5981dfb1
commit f166f2b034

View file

@ -51,7 +51,7 @@ return {
LazyVim.lualine.status(LazyVim.config.icons.kinds.Copilot, function()
local clients = package.loaded["copilot"] and LazyVim.lsp.get_clients({ name = "copilot", bufnr = 0 }) or {}
if #clients > 0 then
local status = require("copilot.api").status.data.status
local status = require("copilot.status").data.status
return (status == "InProgress" and "pending") or (status == "Warning" and "error") or "ok"
end
end)