An open API service indexing awesome lists of open source software.

https://github.com/wsdjeg/tabline.nvim

simple tabline plugin for Neovim
https://github.com/wsdjeg/tabline.nvim

neovim-plugin

Last synced: 25 days ago
JSON representation

simple tabline plugin for Neovim

Awesome Lists containing this project

README

        

# tabline.nvim

`tabline.nvim` is a simple tabline plugin for Neovim.

![Image](https://github.com/user-attachments/assets/4a6e39cb-0e16-4d29-be7a-3e3d4a4316cf)

* [Install](#install)
* [Configuration](#configuration)
* [Highlight group](#highlight-group)
* [Self-Promotion](#self-promotion)
* [Feedback](#feedback)

## Install

With [nvim-plug](https://github.com/wsdjeg/nvim-plug):

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

## Configuration

```lua
require('tabline').setup({
show_index = false, -- display index, disbale by default.
})

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

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

## Highlight group

```
TablineNvimA
TablineNvimB
TablineNvimM
TablineNvimMNC
```

## Self-Promotion

Like this plugin? Star the repository on
GitHub.

Love this plugin? Follow [me](https://wsdjeg.net/) on
[GitHub](https://github.com/wsdjeg) and
[Twitter](http://twitter.com/wsdtty).

## Feedback

If you encounter any bugs or have suggestions, please file an issue in the [issue tracker](https://github.com/wsdjeg/tabline.nvim/issues)