Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 1.69 KB

README.md

File metadata and controls

81 lines (58 loc) · 1.69 KB

nvim-tabline

Simple tabline in lua

ezgif com-video-to-gif

Requirements

  • Neovim 0.7+
  • A patched font (see nerd fonts)
  • Termguicolors should be set

Installation

packer.nvim

use({ 'seblj/nvim-tabline', requires = { 'nvim-tree/nvim-web-devicons' } })

vim-plug

call plug#begin()

Plug 'seblj/nvim-tabline'
Plug 'nvim-tree/nvim-web-devicons'             " Optional

call plug#end()

Setup

require('tabline').setup({
    no_name = '[No Name]',    -- Name for buffers with no name
    modified_icon = '',      -- Icon for showing modified buffer
    close_icon = '',         -- Icon for closing tab with mouse
    separator = "",          -- Separator icon on the left side
    padding = 3,              -- Prefix and suffix space
    color_all_icons = false,  -- Color devicons in active and inactive tabs
    right_separator = false,  -- Show right separator on the last tab
    show_index = false,       -- Shows the index of tab before filename
    show_icon = true,         -- Shows the devicon
})

Configurations

Change tabname

Will prompt you for a custom tabname

require('tabline.actions').set_tabname()

Clear custom tabname

Clears the custom tabname and goes back to default

require('tabline.actions').clear_tabname()

Highlight groups

TabLine
TabLineSel
TabLineFill
TabLineSeparatorSel
TabLineSeparator
TabLineModifiedSel
TabLineModified
TabLineCloseSel
TabLineClose
TabLineIconSel (Only works with fg color)
TabLineIcon (Only works with fg color)