tabline stuff
This commit is contained in:
parent
9c48f4f610
commit
2f1c6bc03d
3 changed files with 34 additions and 2 deletions
|
@ -16,9 +16,11 @@ map('n', '<leader>kc', ':new<cr>', { desc = 'New buffer' })
|
||||||
map('n', '<leader>ko', '<cmd>%bd|e#<cr>', { desc = 'Close all buffers but the current one' }) -- https://stackoverflow.com/a/42071865/516188
|
map('n', '<leader>ko', '<cmd>%bd|e#<cr>', { desc = 'Close all buffers but the current one' }) -- https://stackoverflow.com/a/42071865/516188
|
||||||
|
|
||||||
-- tab navigation
|
-- tab navigation
|
||||||
map('n', '<leader>tp', ':tabprevious<cr>', { desc = 'Prev tab' })
|
map('n', '<leader>tn', ':tabnew<cr>', { desc = 'New tab' })
|
||||||
map('n', '<leader>tn', ':tabnext<cr>', { desc = 'Next tab' })
|
map('n', '<leader>th', ':tabprevious<cr>', { desc = 'Prev tab' })
|
||||||
|
map('n', '<leader>tl', ':tabnext<cr>', { desc = 'Next tab' })
|
||||||
map('n', '<leader>td', ':tabclose<cr>', { desc = 'Close tab' })
|
map('n', '<leader>td', ':tabclose<cr>', { desc = 'Close tab' })
|
||||||
|
map('n', '<leader>tc', ':tcd', { desc = 'Change working directory for tab' })
|
||||||
|
|
||||||
-- plugin management
|
-- plugin management
|
||||||
map('n', '<leader>pc', ':Lazy check<cr>', { desc = 'Check plugins' })
|
map('n', '<leader>pc', ':Lazy check<cr>', { desc = 'Check plugins' })
|
||||||
|
|
|
@ -11,6 +11,7 @@ return {
|
||||||
overrides = {
|
overrides = {
|
||||||
CursorLine = { bg = '#1e1e2e' },
|
CursorLine = { bg = '#1e1e2e' },
|
||||||
LineNr = { fg = '#45475a' },
|
LineNr = { fg = '#45475a' },
|
||||||
|
TabLineSel = { bg = '#181825' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
29
lua/plugins/tabby.lua
Normal file
29
lua/plugins/tabby.lua
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
local theme = {
|
||||||
|
fill = 'TabLineFill',
|
||||||
|
current_tab = 'TabLineSel',
|
||||||
|
tab = 'TabLine',
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'nanozuki/tabby.nvim',
|
||||||
|
config = function()
|
||||||
|
require('tabby').setup({
|
||||||
|
line = function(line)
|
||||||
|
return {
|
||||||
|
line.tabs().foreach(function(tab)
|
||||||
|
local hl = tab.is_current() and theme.current_tab or theme.tab
|
||||||
|
return {
|
||||||
|
' ',
|
||||||
|
tab.name(),
|
||||||
|
' ',
|
||||||
|
hl = hl,
|
||||||
|
}
|
||||||
|
end),
|
||||||
|
line.spacer(),
|
||||||
|
hl = theme.fill,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
lazy = false,
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue