A lualine component to show github copilot status, you can toggle the enabled state by clicking
Copilot enabled
Copilot disabled
-- lua
{ "ofseed/copilot-status.nvim" }
-- lua
use { "ofseed/copilot-status" }
" vimscript
Plug 'ofseed/copilot-status'
Default values for lualine configuration is
lualine_x = {
'encoding',
'fileformat',
'filetype'
}
So I recommend that you can add it to this table and arrange them in a reasonable order. My configuration is
lualine_x = {
"copilot",
"filetype",
"fileformat",
"encoding",
},
Or you can custom icons.
-- lua
require("lualine").setup {
sections = {
lualine_x = {
-- Options with default values
{
"copilot",
show_running = true,
symbols = {
status = {
enabled = " ",
disabled = " ",
},
spinners = require("copilot-status.spinners").dots,
},
},
}
}
}