An open API service indexing awesome lists of open source software.

https://github.com/franco-ruggeri/codecompanion-lualine.nvim

Lualine component for CodeCompanion
https://github.com/franco-ruggeri/codecompanion-lualine.nvim

Last synced: 3 months ago
JSON representation

Lualine component for CodeCompanion

Awesome Lists containing this project

README

          

# 🧩 CodeCompanion Lualine

## 📖 Overview

A simple [lualine](https://github.com/nvim-lualine/lualine.nvim) component for
[CodeCompanion](https://github.com/olimorris/codecompanion.nvim), providing a
status indicator with the number of active CodeCompanion requests.

![demo](https://github.com/user-attachments/assets/013b6b59-a194-479f-807d-3daa6f51c138)

## ✨ Features

- Displays the number of active CodeCompanion requests.
- Shows a spinner while requests are active, and a checkmark (✓) when idle.
- Includes an icon and can be customized.

## 🚀 Installation

With [lazy.nvim](https://github.com/folke/lazy.nvim):

```lua
return {
"nvim-lualine/lualine.nvim",
dependencies = {
"franco-ruggeri/codecompanion-lualine.nvim",
-- Other dependencies
},
opts = {
sections = {
lualine_x = {
"codecompanion",
-- Other components
},
},
},
}
```

The component will be enabled only after CodeCompanion is loaded, respecting its
lazy-loading options. Thus, it is recommended that you do not add CodeCompanion
as a dependency of lualine.

## 🛠️ Customization

You can customize the component by passing the following options:

```lua
require('lualine').setup {
sections = {
lualine_x = {
{
"codecompanion",
icon = " ",
spinner_symbols = { "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" },
done_symbol = "✓",
},
},
},
}
```

## 🙏 Acknowledgements

This plugin is based on the [example from the official
documentation](https://codecompanion.olimorris.dev/usage/ui.html#lualine-nvim-integration).