https://github.com/trippwill/guttermode.nvim
Show your mode in your gutter
https://github.com/trippwill/guttermode.nvim
Last synced: over 1 year ago
JSON representation
Show your mode in your gutter
- Host: GitHub
- URL: https://github.com/trippwill/guttermode.nvim
- Owner: trippwill
- License: apache-2.0
- Created: 2025-03-31T16:08:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-31T16:10:13.000Z (over 1 year ago)
- Last Synced: 2025-03-31T17:26:52.591Z (over 1 year ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guttermode.nvim
๐ฆ A minimal Neovim plugin that displays your current mode using a colored sign in the gutter (sign column), with colors that match your `lualine` theme.
---
## โจ Features
- โ
Seamless integration with your existing colorscheme via `lualine_a_{mode}` highlight groups
- โ
Updates in all modes (Normal, Insert, Visual, Replace, Command)
- โ
Optional cursor-following or full-height border
- โ
Fully theme-aware
- โ
Lightweight, no dependencies
---
## ๐ฆ Installation
### Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
"trippwill/guttermode.nvim",
event = "VeryLazy",
opts = {
follow_cursor = false, -- true = only current line, false = all lines
sign_char = "โ", -- customize gutter character
debounce_ms = 20, -- debounce updates (ms)
debug = false, -- enable logging
},
config = function(_, opts)
require("guttermode").setup(opts)
end,
}
```
---
## โ๏ธ Options
| Name | Type | Default | Description |
|----------------|---------|---------|-----------------------------------------------------------------------------|
| `follow_cursor`| boolean | `false` | Show sign only on the cursor line (`true`) or on all lines (`false`) |
| `sign_char` | string | `"โ"` | The character to show in the sign column |
| `debounce_ms` | number | `20` | Debounce interval for updates (in milliseconds) |
| `debug` | boolean | `false` | Enable logging for development/debugging |
---
## ๐งช Planned Features
- [ ] Optionally disable in inactive windows
- [ ] Support for per-window or per-tab highlight overrides
- [ ] Compatibility layer for users without `lualine`
---
## ๐ชช License
MIT ยฉ [trippwill](https://github.com/trippwill)
---
## ๐ Thanks
This plugin was inspired by a desire for a subtle but visible indicator of insert/visual mode in terminal Neovim, without disrupting your layout.