-
-
Notifications
You must be signed in to change notification settings - Fork 17
tmux
windwp edited this page Jan 15, 2024
·
1 revision
use windline component to render status line on tmux.
inspire by tpiepeline it has more control and don't use nvim_eval_statusline.
require('wltmuxline').setup({
-- autocmd = { "BufEnter", "TabEnter" },
statuslines = {
{
tmux = "status-right", --"status-left"
active = {
-- only use lua and tmux variable
-- you can't use status variable of vim
{ '#{session_name}', { 'red', 'yellow' } },
{ function() return 'hello' end, { 'yellow', 'red' } },
{ '#{version}', { 'red', 'yellow' } }
}
},
}
})
If you don't use any vim variables in your component. almost every component will work in tmux.
Use tabline component
local tabline = require('wltabline')
tabline.setup({})
require('wltmuxline').setup({
statuslines = {
{
tmux = 'status-left',
tabline = true,
active = { tabline.tab_template({}) }
}
}
})