Using vim-plug
Plug 'tomiis4/BufferTabs.nvim'
Using packer
use 'tomiis4/BufferTabs.nvim'
Using lazy
{
'tomiis4/BufferTabs.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons', -- optional
},
lazy = false,
config = function()
require('buffertabs').setup({
-- config
})
end
},
-- 1) lua code
require('buffertabs').toggle()
-- 2) command
:BufferTabsToggle
require('buffertabs').setup()
Default configuration
require('buffertabs').setup({
---@type 'none'|'single'|'double'|'rounded'|'solid'|'shadow'|table
border = 'rounded',
---@type integer
padding = 1
---@type boolean
icons = true,
---@type string
hl_group = 'Keyword',
---@type string
hl_group_inactive = 'Comment',
---@type table[]
exclude = {},
---@type boolean
show_all = false,
---@type 'row'|'column'
display = 'row',
---@type 'left'|'right'|'center'
horizontal = 'center',
---@type 'top'|'bottom'|'center'
vertical = 'top',
})
| LICENSE
| README.md
|
+---lua
| \---buffertabs
| init.lua
| utils.lua
|
\---plugin
buffertabs.lua
tomiis4 founder |
futsuuu |