lualine-copilot.nvim

A lualine component to show github copilot status, you can toggle the enabled state by clicking

This is a fork of the excellent lualine-copilot. deferent is this plugins depends on the copilot.lua not copilot.vim

Screenshots

Copilot enabled image

Copilot disabled image

Installation

lazy.nvim

-- lua
{ "leisurelicht/lualine-copilot.nvim" }

packer.nvim

-- lua
use { "leisurelicht/lualine-copilot.nvim" }

Usage

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. Like is

lualine_x = {
  "copilot",
  "filetype",
  "fileformat",
  "encoding",
},

Or you can custom icons. k

-- lua
require("lualine").setup {
  sections = {
    lualine_x = {
      {
        "copilot",
        -- default is true.
        symbols = {
          -- use your icons to replace
          enabled = "",
          disabled = "",
        }
      },
    }
  }
}