Skip to content

TheDreadedAndy/nvim-bufbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-bufbar

A simple and very light bufferline for Neovim written in Lua.

Note: I won't add new features/themes if I don't need them. Feel free to submit PRs or fork the plugin though.

screenshot

By default only the number of hidden buffers are displayed, see 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.

Installation

With packer.nvim:

use {'ojroques/nvim-bufbar'}

With paq-nvim:

paq {'ojroques/nvim-bufbar'}

Usage

In your init.lua:

require('bufbar').setup {}

If you're using a .vimrc or init.vim:

lua require('bufbar').setup {}

Configuration

You can pass options to the setup() function. Here are all available options with their default settings:

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
}

License

LICENSE

About

A simple and very light Neovim bufferline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 99.4%
  • Vim Script 0.6%