/lualine-copilot

Primary LanguageLuaMIT LicenseMIT

lualine-copilot

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

Screenshots

Copilot enabled image

Copilot disabled image

Installation

lazy.nvim

-- lua
{ "ofseed/lualine-copilot" }
-- lua
use { "ofseed/lualine-copilot" }
" vimscript
Plug 'ofseed/lualine-copilot'

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. My configuration is

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

Or you can custom icons.

-- lua
require("lualine").setup {
  sections = {
    lualine_x = {
      {
        "copilot",
        -- default is true.
        show_running = true,
        symbols = {
          -- default is " "
          running = "🚀",
        }
      },
    }
  }
}

TODO

  • Mouse support (Neovim Nightly)
  • Optimize startup speed
  • Add different highlights
  • Add custom configuration options
  • Change the logic for getting status information
  • Show offline status