o0th / tmux-nova

tmux theme
MIT License
173 stars 20 forks source link

@nova-segments-0-left with more than one segment gets cut off #25

Closed notoyz closed 2 years ago

notoyz commented 2 years ago

Thanks for the great plugin!

When I try to insert more than one segment into @nova-segments-0-left, only the first segment works as intended.

The second segment and any following segments get cut off along with @nova-nerdfonts-left as shown here:

Screenshot 2022-09-27 at 10 19 17

My Nova config:

###########################################################
### Nova
###########################################################

# Set status bar to top
set-option -g status-position top

# Define how many status line to show.
# one of: 0, 1, 2, 3, 4; default: 0
set -g @nova-rows 0

# Nerdfonts
# one of: true, false; default: false
set -g @nova-nerdfonts true
set -g @nova-nerdfonts-left 
set -g @nova-nerdfonts-right 

# Pane Content
# default: "#S:#I:#W"
set -g @nova-pane "#I ► #W"

# Pane Position
# one of: "left", "right", "centre", "absolute-centre"; default: "left"
set -g @nova-pane-justify "centre"

# Theme
set -g "@nova-pane-active-border-style" "#f48FB1"
set -g "@nova-pane-border-style" "#fFE6B3"
set -g "@nova-status-style-bg" "#100E23"
set -g "@nova-status-style-fg" "#8A889D"
set -g "@nova-status-style-active-bg" "#3E3859"
set -g "@nova-status-style-active-fg" "#CBE3E7"
set -g "@nova-status-style-double-bg" "#1E1C31"

# Prefix Segment
set -g @nova-segment-prefix "#{?client_prefix,,}" #
set -g @nova-segment-prefix-colors "#d4BFFF #100E23"

# Mode Segment
set -g @nova-segment-mode "#{?pane_in_mode,#{pane_mode},}"
set -g @nova-segment-mode-colors "#fFE6B3 #100E23"

# Session Segment
set -g @nova-segment-session "#{session_name}"
set -g @nova-segment-session-colors "#A1EFD3 #100E23"

# Whoami Segment
set -g @nova-segment-whoami "#(whoami)@#h"
set -g @nova-segment-whoami-colors "#3E3859 #CBE3E7"

# Segment features
set -g @nova-segments-0-left "prefix session"
set -g @nova-segments-0-right "mode whoami prefix"
o0th commented 2 years ago

Hi @notoyz, thank you for using my plugin! I like your style, it's neat!

By default, the left segment in tmux is set with a maximum length of 20 characters, you can overwrite this setting by defining status-left-length in your .tmux.conf.

# .tmux.conf
set -g status-left-length 50
notoyz commented 2 years ago

Works great, thanks!

notoyz commented 2 years ago

Here's the theme I'm using if you liked the style:

https://embark-theme.github.io/