edkolev/tmuxline.vim

`status-justify "left"` reverts back to `center` till vim is opened

Closed this issue · 1 comments

Tmux version: tmux 3.1c

# This tmux statusbar config was created by tmuxline.vim
# on Mon, 28 Feb 2022

set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=colour254,bg=colour239"
set -g status-right-style "none"
set -g pane-active-border-style "fg=colour237"
set -g status-style "none,bg=colour235"
set -g message-style "fg=colour254,bg=colour239"
set -g pane-border-style "fg=colour239"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "none,fg=colour237,bg=colour235"
setw -g window-status-separator ""
setw -g window-status-style "none,fg=colour255,bg=colour235"
set -g status-left "#[fg=colour254,bg=colour237] #h #[fg=colour237,bg=colour235,nobold,nounderscore,noitalics]"
set -g status-right ""
setw -g window-status-format "#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=colour235,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour254,bg=colour239] #W #[fg=colour239,bg=colour235,nobold,nounderscore,noitalics]"

This is my .tmuxline file and
this is my config

" Tmuxline
let g:tmuxline_powerline_separators = 1

let g:tmuxline_preset = {
      \'a'    : '#h',
      \'win'  : '#W',
      \'cwin' : '#W',
      \'options': {
        \'status-justify': 'left'}
      \}

Expected Behavior:
this to persist even after restarting the shell

Current Behavior:
after restarting the shell, it reverts back to

I've tried creating and recreating the snapshot. Works for other things except status-justify

I had a
set -g status-justify center in the tmux.conf so that was why it wasn't working. I changed it to set -g status-justify left and its works!
Closing it here.