Works in Neovim 0.9.5 if you have copilot enabled by default and toggle it with :Copilot disable/enable
.
Create a lualine component file {nvim-dir}/lua/lualine/components/copilot_status.lua
local M = require('lualine.component'):extend()
local highlight = require("lualine.highlight")
function M:init(options)