diff options
author | Michaël Ball <michael@Michaels-MacBook-Pro.local> | 2024-07-16 16:12:12 +0100 |
---|---|---|
committer | Michaël Ball <michael@Michaels-MacBook-Pro.local> | 2024-07-16 16:12:12 +0100 |
commit | 4385c252eb461a0ec9dbf9569a8f9ef7f0664289 (patch) | |
tree | de1005fbc0274eea549dc42ca5be17101b937463 /neovim/.config/nvim/lua/config/tabby.lua |
Initial commit
Diffstat (limited to 'neovim/.config/nvim/lua/config/tabby.lua')
-rw-r--r-- | neovim/.config/nvim/lua/config/tabby.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/config/tabby.lua b/neovim/.config/nvim/lua/config/tabby.lua new file mode 100644 index 0000000..1b64ac6 --- /dev/null +++ b/neovim/.config/nvim/lua/config/tabby.lua @@ -0,0 +1,30 @@ +local theme = { + fill = 'TabLineFill', + -- Also you can do this: fill = { fg='#f2e9de', bg='#907aa9', style='italic' } + head = 'TabLine', + current_tab = 'TabLineSel', + tab = 'TabLine', + win = 'TabLine', + tail = 'TabLine', +} +require('tabby.tabline').set(function(line) + return { + { + line.sep('', theme.head, theme.fill), + }, + line.tabs().foreach(function(tab) + local hl = tab.is_current() and theme.current_tab or theme.tab + return { + line.sep('', hl, theme.fill), + tab.is_current() and '' or '', + tab.number(), + tab.name(), + tab.close_btn(''), + line.sep('', hl, theme.fill), + hl = hl, + margin = ' ', + } + end), + hl = theme.fill, + } +end) |