Closed DeadlySquad13 closed 2 years ago
I added the absolute-centre
option only in tmux 3.2, for tmux 3.0 it is okay to use normal centre
instead. Maybe some tmux options after this were ignored due to the error, so try again with set -g status-justify centre
. Maybe that will fix the weird cut statusline.
If it still doesn't work after that, send the output of :echo tpipeline#debug#info()
I added the
absolute-centre
option only in tmux 3.2, for tmux 3.0 it is okay to use normalcentre
instead. Maybe some tmux options after this were ignored due to the error, so try again withset -g status-justify centre
. Maybe that will fix the weird cut statusline.If it still doesn't work after that, send the output of
:echo tpipeline#debug#info()
Hi!
Thanks for the attention to my issue! I changed to centre
and tried to place tpipeline sets at the end of the config file just before the plugin list but after the theme plugin configurations.
Unfortunately, it didn't help.
Output of :echo tpipeline#debug#info()
:
In text format:
{'right': [''], 'native_str': ' NORMAL /home/dubuntus utf-
8 tmux 92% 284:1 ', 'left': ['#[fg=,bg=#EFE0B9]#[fg=#f9f5d7,bg=#7c6f64,bold] COMMAND #[fg=#7c6f64,bg=#ebdbb2,nobold]#[fg=#7c6f64,bg=#ebdbb2] /home/dubuntus #[fg=#7c6f64,bg=#ebdbb2]#[fg=#7c6f64,bg=#ebdbb2] utf-8 #[fg=#7c6f6
4,bg=#ebdbb2] #[fg=#6d8086,bg=#ebdbb2] #[fg=#7c6f64,bg=#ebdbb2] tmux #[fg=#d5c4a1,bg=#ebdbb2]#[fg=#7c6f64,bg=#d5c4a1] 92% #[fg=#7c6f64,bg=#d5c4a1]#[fg=#f9f5d7,bg=#7c6f64,bold] 284:1 '], 'native_highlights': [{'group': 'lualine_a_n
ormal', 'start': 0}, {'group': 'lualine_transitional_lualine_a_normal_to_lualine_c_normal', 'start': 8}, {'group': 'lualine_c_normal', 'start': 11}, {'group': 'lualine_c_normal', 'start': 27}, {'group': 'lualine_c_normal', 'start': 204},
{'group': 'lualine_c_normal', 'start': 214}, {'group': 'lualine_x_filetype_DevIconConf_normal', 'start': 222}, {'group': 'lualine_c_normal', 'start': 226}, {'group': 'lualine_transitional_lualine_b_normal_to_lualine_c_normal', 'start': 23
2}, {'group': 'lualine_b_normal', 'start': 235}, {'group': 'lualine_transitional_lualine_a_normal_to_lualine_b_normal', 'start': 241}, {'group': 'lualine_a_normal', 'start': 244}]}
Very interesting, I can't reproduce this unfortunately.
Can you post the output of:
:echo luaeval("require'tpipeline.main'.update()")
:echo nvim_eval_statusline(g:tpipeline_statusline, #{fillchar: g:tpipeline_fillchar, highlights: 1, maxwidth: g:tpipeline_size})
:echo g:tpipeline_size
I think that should be enough for me to debug it.
Everything done with lualine+tpipeline. tpipeline sets were not changed after previous comment.
Output of :echo luaeval("require'tpipeline.main'.update()")
:
#[fg=#f9f5d7,bg=#7c6f64,bold] NORMAL #[fg=#7c6f64,bg=#d5c4a1,nobold]юВ░#[fg=#7c6f64,bg=#d5c4a1] юВа nvim-theme юВ▒#[fg=#ffa500,bg=#d5c4a1] яФй 12 #[fg=#d5c4a1,bg=#ebdbb2]юВ░#[fg=#7c6f64,bg=#ebdbb2] /var/local/Backup/_dotfiles/stow_home/nvim/.config
/nvim/lua #[fg=#7c6f64,bg=#ebdbb2]#[fg=#7c6f64,bg=#ebdbb2] utf-8 юВ│#[fg=#7c6f64,bg=#ebdbb2] юЬТ юВ│#[fg=#51a0cf,bg=#ebdbb2] юШа#[fg=#7c6f64,bg=#ebdbb2] lua #[fg=#d5c4a1,bg=#ebdbb2]юВ▓#[fg=#7c6f64,bg=#d5c4a1] 55% #[fg=#7c6f64,bg=#d5c4a1]юВ▓#[fg=#f9f
5d7,bg=#7c6f64,bold] 350:5
Output of :echo nvim_eval_statusline(g:tpipeline_statusline, #{fillchar: g:tpipeline_fillchar, highlights: 1, maxwidth: g:tpipeline_size})
:
{'str': ' NORMAL юВ░ юВа nvim-theme юВ▒ яФй 12 юВ░ /var/local/Backup/_dotfiles/stow_home/nvim/.config/nvim/lua utf-8 юВ│ юЬТ юВ│ юШа lua юВ▓ 55% юВ▓ 350:5 ', 'highlights': [{'group': 'lualine_a_normal', 'start': 0}, {'group': 'lualine_transitional_lualine_a
_normal_to_lualine_b_normal', 'start': 8}, {'group': 'lualine_b_normal', 'start': 11}, {'group': 'lualine_b_diagnostics_warn_normal', 'start': 30}, {'group': 'lualine_transitional_lualine_b_diagnostics_warn_normal_to_lualine_c_normal', 's
tart': 38}, {'group': 'lualine_c_normal', 'start': 41}, {'group': 'lualine_c_normal', 'start': 102}, {'group': 'lualine_c_normal', 'start': 102}, {'group': 'lualine_c_normal', 'start': 112}, {'group': 'lualine_x_filetype_DevIconLua_normal
', 'start': 120}, {'group': 'lualine_c_normal', 'start': 124}, {'group': 'lualine_transitional_lualine_b_normal_to_lualine_c_normal', 'start': 129}, {'group': 'lualine_b_normal', 'start': 132}, {'group': 'lualine_transitional_lualine_a_no
rmal_to_lualine_b_normal', 'start': 138}, {'group': 'lualine_a_normal', 'start': 141}], 'width': 127}
Output of :echo g:tpipeline_size
:
0
Output of
:echo g:tpipeline_size
:0
OK, this is weird, apparently tmux display-message -p '#{window_width}'
returns 0
for you (can you check this?). Is tmux not in your normal PATH
or something?
Output of
:echo g:tpipeline_size
:0
OK, this is weird, apparently
tmux display-message -p '#{window_width}'
returns0
for you (can you check this?). Is tmux not > in your normalPATH
or something?
It returns nonzero value:
Regarding PATH, I don't remember how I installed tmux but everything seems fine:
> which tmux
/usr/bin/tmux
> echo $PATH
/home/dubuntus/.local/bin:/home/dubuntus/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/dubuntus/.npm-global/bin:/home/dubuntus/.local/bin:/home/dubuntus/go/bin:/usr/local/go/bin:/mnt/c/ProgramData/Microsoft/Windows/Start Menu/Programs:/mnt/c/Program Files (x86)/XYplorer:/mnt/c/ProgramData/WslProgramData
Very weird, try to see what is returned by :echo(str2nr(system("tmux display-message -p '#{window_width}'")))
.
Maybe also try au VimResized * echom(str2nr(system("tmux display-message -p '#{window_width}'")))
, then resize tmux or vim a few times, and check if you ever see the number 0
in :messages
echo(str2nr(system("tmux display-message -p '#{window_width}'")))
yes, it returns 0.
Though if I run the same command from tmux when vim is on screen I get the same number as in console:
What if you open a shell in neovim with :terminal
and run tmux display-message -p '#{window_width}'
there? Does :!tmux display-message -p '\#{window_width}'
show any error?
What if you open a shell in neovim with
:terminal
and runtmux display-message -p '#{window_width}'
there? Does:!tmux display-message -p '\#{window_width}'
show any error?
From builtin shell I get normal result:
:!tmux display-message -p '\#{window_width}'
shows normal value:
That's probably the problem. Do you know where the Agent pid 17835
output comes from?
It should work now though, I added a workaround.
That's probably the problem. Do you know where the
Agent pid 17835
output comes from?It should work now though, I added a workaround.
Thank you very much, it now works! This ouput comes from my bashrc:
# Enable ssh authentication agent (for ssh-add).
eval `ssh-agent -s`
Sorry this little tweak caused a lot of problems, I could have never guessed it's a culprit.
Hello! Thanks for you work, this plugin looks cool! Unfortunately, I can't get it working can you please help me solve this issue? After installing it I had this problem: Neovim statusline is shrinked on left, tmux - just after it without left and right parts.
Without plugin I have everything setup like this: Expected this plugin to overwrite my tmux statusline leaving only tabs visible or ideally to combine with it so that it looks like:
Check if the requirements are met
Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
Run :checkhealth for more info
tmux config:
My small investigation
Initially I had lualine and tmux custom theme / statusline. As I have almost out of the box config for lualine I decided that problem is in tmux so I`ve done following:
commented out everything related to tmux status line, sourced config and restarted tmux - no positive result;
uninstalled tmux status line, sourced config and restarted tmux - no positive result;
I started wondering whether my configuration wasn't reset to defaults (as I remember tmux doesn't set defaults automatically) so I searched for command to start tmux with no configuration and found this command:
tmux -L test -f /dev/null
. I created a new config with only your commands and 256 color support and used command:tmux -L test3 -f ~/tmux/.tmux-test.conf
(see tmux config from minimal config to reproduce). Still an issue...Decided to remove lualine just to be sure, only tpipeline is left. Finally, I have minimal tmux config with default tpipeline`s statusline and the following view:
By the way, is it intended? In manual I didn't find this option, only left, center and right: Do I have a wrong version? Mine is (output of
tmux -V
):My configuration
My full tmux config (without keybinds):