Target letters from the buffer name, a bbye.vim carried over from bufferline, and no license file
The neovim tabline plugin.
At a glance
- What is it?
- barbar.nvim is a Neovim tabline plugin that replaces the numbered bufferline with clickable, reorderable and closable tabs plus a jump-to-buffer letter mode; the parts worth reading closely are the namespace it inherited from bufferline, the optional plugins its icons depend on, and a repository with no license text at all.
- Who is it for?
- barbar.nvim fits a Neovim user who wants the tab behaviour of a normal editor and is comfortable wiring up two optional plugins for icons and git status. Check four things before you commit to it.
- Can I use it commercially?
- The repository metadata does not identify a licence. Check the project’s published terms and any component-specific licences before reuse.
- Is it still maintained?
- Yes. The repository last received commits 167 days ago.
- What is it written in?
- Mainly Lua, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- romgrk/barbar.nvim2,731 ★ · -2
| Repository | 2026-10-04 | 2026-11-24 |
|---|---|---|
| romgrk/barbar.nvim | 2.7k | 2.7k |
-2 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
No license file sits at the root and no license heading exists
The repository root holds .editorconfig, .gitignore, README.md and five directories: .github/, autoload/, doc/, lua/, plugin/ and static/. There is no LICENSE file among them, and the license field on the repository is empty.
The table of contents in the documentation is the other half of the picture. Its headings are Install, Features, Usage, Options, Highlighting, Integrations, Known Issues and About Barbar, with no license section anywhere in that list. So for a plugin whose whole purpose is to be dropped into somebody's editor configuration, there is no permission statement to read and no file to pass on when the configuration is shared.
That is not a technical fault in the plugin, and it is not something a reader can fix by reading harder. It is a gap that has to be closed by the author, and anyone shipping a configuration containing this plugin should raise it before treating the setup as shareable.
The recommended install pins the plugin to the 1.x line
The lazy.nvim snippet is the one most readers copy, and it carries a version constraint:
version = '^1.0.0', -- optional: only update when a new 1.x version is releasedThe comment marks it optional. What it does is tie the installed copy to published 1.x tags, which is a different thing from tracking the master branch. The three most recent tags are v1.9.1 from 2024-08-05, v1.8.0 from 2024-06-07 and v1.7.0 from 2023-08-26, while the branch itself received a push on 2026-06-10.
So there is roughly a two year gap between the newest tag and the newest commit, and an installation that follows the documented pin sees none of it. That is a defensible choice for a tabline plugin, where a surprise in a patch level is disruptive, but it does mean the version a user reports and the state of the repository are two different things unless they drop the constraint.
The same snippet also sets init = function() vim.g.barbar_auto_setup = false end, because lazy.nvim calls setup itself and the plugin otherwise configures itself twice.
Two of the three install snippets treat the optional plugins differently
The documentation gives three install routes, and the difference between them is in how the two optional dependencies are declared.
With lazy.nvim they go inside the spec as dependencies:
dependencies = {
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
},With packer.nvim they are separate use lines above the plugin, and a comment explains why: these optional plugins should be loaded directly because of a bug in Packer lazy loading.
use 'nvim-tree/nvim-web-devicons' -- OPTIONAL: for file icons
use 'lewis6991/gitsigns.nvim' -- OPTIONAL: for git status
use 'romgrk/barbar.nvim'The vim-plug route uses the same shape with Plug lines. The optional pieces are therefore not decoration: nvim-web-devicons is what puts an icon on a tab, and gitsigns.nvim is what puts git status on one. Without them the tabline still works, just plainer. The devicons note adds a further expectation, since that plugin needs a nerd font by default and the note says the requirement can be configured away.
Target letters come from the buffer name unless you change it
Jump-to-buffer mode is the part that has no equivalent in the stock bufferline. In that mode a tab shows a target letter instead of its icon, typing the letter jumps to that buffer, and the letter stays constant for the lifetime of the buffer, which is what makes it possible to type ahead from memory while working through a known set of files.
The assignment is where the design decision sits. By default letters are assigned based on the buffer name, so README.md gets the letter r. That choice makes the letters predictable from what you already see, and it also means the letter space is consumed by whatever letter a path happens to start with. The alternative is assignment by usability, where the home row asdfjkl;gh is filled first and the other rows after it.
The plugin does handle duplicate filenames in the tab titles by making them unique. Nothing in the documentation says what happens when two different buffers produce the same target letter, so a configuration with many files sharing a first letter is the case to check yourself.
BufferClose arrives from bbye.vim under the bufferline namespace
Closing buffers is handled by a modified copy of bbye.vim, the plugin originally written for bufferline. The documentation states the reason plainly: BufferClose is recommended over bdelete because it will not mess your window layout.
That inheritance is visible in the code layout, not just in the prose. The function is offered under two names:
BufferCloseand as bufferline#bbye#delete(buf), an autoload style name in the bufferline namespace rather than a barbar one. An autoload directory sits at the repository root next to lua/ and plugin/, so the Vimscript side is still part of the plugin rather than something it calls out to.
This matters for anyone rebinding keys. The bufferlist provides no default mappings at all, and the examples in the usage section are exactly that, examples. Left-click goes to a buffer and middle-click or the close button closes one, which brings a second requirement with it: set mouse+=a, without which the mouse does nothing in Neovim at all.
Sort tabs automatically is delivered as five manual commands
One feature heading promises automatic sorting and then lists five commands:
:BufferOrderByName
:BufferOrderByDirectory
:BufferOrderByLanguage
:BufferOrderByWindowNumber
:BufferOrderByBufferNumberNone of them takes arguments, so the ordering is a choice made when the command runs rather than a standing rule, and reordering by hand with BufferMovePrevious and BufferMoveNext competes with the same list the commands act on.
The two window based criteria are worth separating from the other three in that list. Name, directory and language group buffers by something about the file, while window number and buffer number group them by where they happen to sit, so ordering by either of those produces a layout tied to the current window arrangement rather than to the project.
Two related behaviours round out the tabline behaviour: tabs are scrollable so the current buffer is always shown, and the bufferline is offset when sidebars are open, which is what keeps the first tab reachable once a file tree or a symbol panel takes part of the width.
Highlight groups are a status word and a part word
Highlighting is built from a naming scheme rather than a list of colours. Groups are created as Buffer<STATUS><PART>, with the status chosen from four values: Alternate, which follows the alternate file concept; Current; Inactive, covering hidden and inactive buffers; and Visible, for active buffers that are neither alternate nor current.
The part word comes second and carries the decorations. ADDED is the git status added marker, and Btn is the button that appears on a buffer that is not the current one, so the close affordance is a highlight group rather than a drawn icon.
The options that gate this behaviour sit next to it in the same block. animation is true by default, auto_hide is false and takes any value of zero or more to hide the tabline once that many buffers are left, tabpages is true for the current and total tabpage indicator in the top right corner, and clickable tabs have their own switch. The block also carries a warning worth repeating: it is an example of what the options are, and the defaults suit most people.
Editorial conclusion
barbar.nvim fits a Neovim user who wants the tab behaviour of a normal editor and is comfortable wiring up two optional plugins for icons and git status. Check four things before you commit to it. There is no license file in the repository and no license heading in the documentation, so there is no permission statement to point at; that is worth raising with the author rather than assuming. The jump-to-buffer letters default to the buffer name, which means one letter per name and no documented tie break when two names collide. BufferClose, not bdelete, is the command to bind, and the version it comes from is bufferline's bbye.vim rather than a fresh implementation. And the recommended lazy.nvim install pins the plugin to the 1.x line with version = '^1.0.0', so a checkout of master, last pushed on 2026-06-10, is not what most installations are running.
Frequently asked questions
What is barbar.nvim, and what does it need to run?
It is a Neovim tabline plugin with re-orderable, auto-sizing, clickable tabs, icons, highlighting, sort commands and a jump-to-buffer mode, plus unique tab names when two filenames match. The stated requirement is Neovim v0.7 or higher, with nvim-web-devicons and gitsigns.nvim optional.
Why do my barbar.nvim tabs show no icon?
File icons come from the optional nvim-web-devicons plugin, and without it the tab renders without one. That plugin needs a nerd font by default, and the note says the requirement can be configured away through its own setup.
How do I close a buffer in barbar.nvim without breaking the window layout?
Use the BufferClose command rather than bdelete, because it will not mess your window layout. A modified version of bbye.vim is included for exactly this and is also reachable as bufferline#bbye#delete(buf).
Why does clicking a barbar.nvim tab do nothing?
Clickable tabs have their own option, and the documentation reminds you to set mouse+=a so the mouse is active in Neovim at all. Left-click goes to the buffer, middle-click or the close button closes it. No default mappings are provided, so the key bindings in the usage section are examples.
How do the letters on barbar.nvim tabs get assigned?
In jump-to-buffer mode a tab shows a target letter instead of its icon, typing the letter jumps to that buffer, and the letter stays constant for the buffer's lifetime. By default letters come from the buffer name, so README.md gets r, and the assignment can be switched to usability order with the home row asdfjkl;gh filled first.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/romgrk-barbar-nvim)Star history chart for your README
[](https://hysenlabs.com/projects/romgrk-barbar-nvim)Was this useful?