tmux-plugins / tmux-prefix-highlight

Plugin that highlights when you press tmux prefix key

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not show prefix after source a new colorscheme

roachsinai opened this issue · comments

Hi, there. This plugin work fine until I change the colorscheme of tmux by tmux source-file new_scheme.

My setting about tmux-prefix-highlight as below:

set -g @plugin 'tmux-plugins/tmux-prefix-highlight'

set -g @prefix_highlight_fg 'colour00'
set -g @prefix_highlight_bg 'red'
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=colour00,bg=colour05,bold'
set -g @prefix_highlight_prefix_prompt 'PREFIX'
set -g @prefix_highlight_copy_prompt 'COPY'

And when I run tmux it works, a screenshot show the prefix after press <c->(my tmux prefix) as below:

image

But if I change to a new colorscheme like: tmux source-file ~/.tmux/tmuxline/edge-dark.tmux.conf

There is no PREFIX on the right statusline after I press <c->

image


And the content of edge-dark.tmux.conf as below:

# This tmux statusbar config was created by tmuxline.vim
# on Sun, 21 Jun 2020

set -g status-justify "centre"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=#c5cdd9,bg=#414550"
set -g status-right-style "none"
set -g pane-active-border-style "fg=#6cb6eb"
set -g status-style "none,bg=#30323a"
set -g message-style "fg=#c5cdd9,bg=#414550"
set -g pane-border-style "fg=#414550"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "none,fg=#6cb6eb,bg=#30323a"
setw -g window-status-separator ""
setw -g window-status-style "none,fg=#c5cdd9,bg=#30323a"
set -g status-left "#[fg=#2c2e34,bg=#6cb6eb] #S #[fg=#6cb6eb,bg=#414550,nobold,nounderscore,noitalics]#[fg=#c5cdd9,bg=#414550] %R #[fg=#414550,bg=#30323a,nobold,nounderscore,noitalics]#[fg=#c5cdd9,bg=#30323a] #{sysstat_mem} #[fg=blue]#{sysstat_ntemp} #[fg=green]↑#{upload_speed} #[fg=#30323a,bg=#30323a,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=#30323a,bg=#30323a,nobold,nounderscore,noitalics]#[fg=#c5cdd9,bg=#30323a] #[fg=green]#{download_speed} ↓ #[fg=blue]#{sysstat_itemp} #{sysstat_cpu} #[fg=#414550,bg=#30323a,nobold,nounderscore,noitalics]#[fg=#c5cdd9,bg=#414550] %a #[fg=#6cb6eb,bg=#414550,nobold,nounderscore,noitalics]#[fg=#2c2e34,bg=#6cb6eb] #H #{prefix_highlight} "
setw -g window-status-format "#[fg=#30323a,bg=#30323a,nobold,nounderscore,noitalics]#[fg=#c5cdd9] #I  #W #[fg=#30323a,bg=#30323a,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=#30323a,bg=#414550,nobold,nounderscore,noitalics]#[fg=#c5cdd9,bg=#414550] #I  #W  #F #[fg=#414550,bg=#30323a,nobold,nounderscore,noitalics]"

Thanks in advance :)

Found reason as colorscheme reset statusline.