nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.06k stars 141 forks source link

Do not set status-style when disabling the nord statusline #64

Open 0phoff opened 2 years ago

0phoff commented 2 years ago

This commits fixes the code to not set the status-style option when disabling the nord-tmux status-bar.

Usually, when disabling the status-bar, it means a user wants to customize it to his/her liking. For some reason, overriding this status-style option before creating your own bar does not seem to work. The only way I got things working was to explicitly remove that option from your code.

By setting this option in the nord-status-content.conf and nord-status-content-no-patched-font.conf files, we ensure it gets only set when a user actually uses the provided status-bars.

arcticicestudio commented 2 years ago

Hi @0phoff :wave:, thanks for your contribution :+1: I'll try to review and test the changes within the next weeks.

arcticicestudio commented 2 years ago

@0phoff Thanks for your patience, it's been busy times again. Can you please provide a MCVE that shows how the status-style option prevents users from defining their own status bar content? I tried to reproduce it by setting the @nord_tmux_show_status_content variable to 0 and defining custom content for the right bar (set -g status-right "..."), but it works fine even the custom content is defined after loading the plugin.