A minimal Tabline plugin for Neovim, written in Lua. It is basically a drop-in replacement for tabline.vim but with a few differences.
With vim-plug:
Plug 'crispgm/nvim-tabline'
With packer.nvim:
use({
'crispgm/nvim-tabline',
config = function()
require('tabline').setup({})
end,
})
require('tabline').setup({})
require('tabline').setup({
show_index = true, -- show tab index
show_modify = true, -- show buffer modification indicator
modify_indicator = '[+]', -- modify indicator
no_name = '[No name]', -- no name buffer name
})
Vim's tabpage commands are powerful enough, :help tabpage
for details.
If you need switch between tabs, here is a great tutorial.
The highlighting of the tab pages line follows vim settings. See :help setting-tabline
for details.
nvim-tabline is not exactly a Lua translation. There are some differences for configuration:
- Control whether to display tab number (
show_index
) and buffer modification indicator (show_modify
) - Customize modify indicator and no name buffer name
- Close button (
g:tablineclosebutton
) is not supported