ofseed / copilot-status.nvim

MIT License
17 stars 2 forks source link

copilot-status.nvim

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/copilot-status.nvim" }

packer.nvim

-- lua
use { "ofseed/copilot-status" }

vim-plug

" vimscript
Plug 'ofseed/copilot-status'

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 = {
      -- Options with default values
      {
        "copilot",
        show_running = true,
        symbols = {
          status = {
            enabled = " ",
            disabled = " ",
          },
          spinners = require("copilot-status.spinners").dots,
        },
      },
    }
  }
}

TODO