Skip to content

wsdjeg/tabline.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tabline.nvim

tabline.nvim is a simple tabline plugin for Neovim.

GitHub License GitHub Issues or Pull Requests GitHub commit activity GitHub Release

Image

Install

With nvim-plug:

require('plug').add({
    {
        'wsdjeg/tabline.nvim',
        config = function()
            require('tabline').setup()
        end
    }
})

Configuration

require('tabline').setup({
  show_index = false, -- display index, disbale by default.
  -- # types, default is 4
  -- # 0: 1 ➛ ➊
  -- # 1: 1 ➛ ➀
  -- # 2: 1 ➛ ⓵
  -- # 3: 1 ➛ ¹
  -- # 4: 1 ➛ 1
  index_type = 4,
})

-- use leader + number for buffer jump
for i = 1, 9 do
  vim.keymap.set('n', '<leader>' .. i, function()
    require('tabline').jump(i)
  end, { silent = true })
end

-- use alt-left/right to move buffer
vim.keymap.set('n', '<A-Left>' .. i, function()
  require('tabline').move_to_previous()
end, { silent = true })
vim.keymap.set('n', '<A-Right>' .. i, function()
  require('tabline').move_to_next()
end, { silent = true })

Highlight group

Highlight description
TablineNvimA highlight of current buffer
TablineNvimB highlight of other buffer
TablineNvimM highlight of current buffer if it is modified
TablineNvimMNC highlight of other buffer if it is modified

Themes

theme colorscheme file
one vim-one lua/tabline/themes/one.lua

Self-Promotion

Like this plugin? Star the repository on GitHub.

Love this plugin? Follow me on GitHub.

Feedback

If you encounter any bugs or have suggestions, please file an issue in the issue tracker

About

simple tabline plugin for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •  

Languages