https://github.com/ojroques/nvim-bufbar
A simple and very light Neovim bufferline
https://github.com/ojroques/nvim-bufbar
bufferline nvim-lua nvim-plugin
Last synced: 2 months ago
JSON representation
A simple and very light Neovim bufferline
- Host: GitHub
- URL: https://github.com/ojroques/nvim-bufbar
- Owner: ojroques
- License: bsd-2-clause
- Created: 2021-02-07T10:34:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T09:38:46.000Z (2 months ago)
- Last Synced: 2025-03-17T10:37:56.749Z (2 months ago)
- Topics: bufferline, nvim-lua, nvim-plugin
- Language: Lua
- Homepage:
- Size: 188 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim-bufbar
A simple and very light bufferline for Neovim.
_**Note**: I won't add new features/themes I don't need. Feel free to submit PRs or fork the plugin
though._
By default only the indices of hidden buffers are displayed, see [configuration](#configuration) to
show their name instead.The plugin highlights buffers in different colors based on their type. With the default
colorscheme, modified buffers are blue, unmodified ones are green and terminal buffers are red.
Tabs are shown in the top right corner.## Usage
In your *init.lua*:
```lua
require('bufbar').setup {}
```## Configuration
You can pass options to the `setup()` function. Here are all available options with their default
settings:
```lua
M.options = {
theme = 'default', -- the theme in 'lua/bufbar/themes' to use
show_tabs = true, -- show tabs
show_bufname = 'current', -- show full buffer name ('current', 'visible' or 'all')
show_flags = true, -- show buffer flags
show_alternate = false, -- show alternate buffer
modifier = ':t', -- the name modifier
term_modifier = ':t', -- the name modifier for terminal buffers
separator = '|', -- the buffer separator
}
```