-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabby.lua
37 lines (34 loc) · 823 Bytes
/
tabby.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local config = function()
local theme = {
fill = 'TabLineFill',
current_tab = 'TabLineSel',
tab = 'TabLine',
win = 'TabLine',
}
require('tabby.tabline').set(function(line)
return {
line.tabs().foreach(function(tab)
local hl = tab.is_current() and theme.current_tab or theme.tab
local window = tab.current_win()
return {
'',
tab.number(),
window.file_icon(), -- icon of current window
window.buf_name(), -- no number of windows in tab
-- tab.name(),
hl = hl,
margin = ' ',
'',
}
end),
line.spacer(),
hl = theme.fill,
}
end)
end
return {
'nanozuki/tabby.nvim',
event = 'VimEnter',
dependencies = 'nvim-tree/nvim-web-devicons',
config = config,
}