crispgm/nvim-tabline

github github
tabline plugin
star 9
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 2
forks
CREATED

2021-02-14

UPDATED

28 days ago

packer

require('packer').startup(function()
  use 'crispgm/nvim-tabline'
end)

paq

require "paq" { 
  'crispgm/nvim-tabline'
}

nvim-tabline

nvim port of tabline.vim, written in Lua. It is basically a drop-in replacement but with some differences.

nvim-tabline-screenshots

Installation

With vim-plug:

Plug 'crispgm/nvim-tabline'

Configuration

require('tabline').setup({})

Defaults

require('tabline').setup({
    show_index = true,    -- show tab index
    show_modify = true,   -- show buffer modification indicator
    no_name = '[No name]' -- no name buffer name
})

Mappings

Vim's tabpage commands are powerful enough, :help tabpage for details. If you need switch between tabs, here is a great tutorial.

Highlights

The highlighting of the tab pages line follows vim settings. See :help setting-tabline for details.

Differences

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