Open budimanjojo opened 1 week ago
You can use programs.tmux.extraConfig
for this programs.tmux.catppuccin.extraConfig
was added as a way to set options before the plugin was loaded, which was otherwise impossible due to how home-manager creates tmux.conf
.
Yes I did mention that user can just use programs.tmux.extraConfig
but I prefer having separation between the main config and theme config in the nix file.
There are breaking changes in upstream since https://github.com/catppuccin/tmux/releases/tag/v0.4.0
One of the change requires changes in here too. The change in question: The
status-left
andstatus-right
options are no longer controlled by this plugin.This means user needs to configure
set -g status-left
andset -g status-right
after loading the plugin. An example on the change (taken from https://github.com/catppuccin/tmux?tab=readme-ov-file#config-1 before and after the release) BEFORE:AFTER:
As you can see, there are section of config that needs to be run after the plugin is being loaded. We can simply let the user do this manually by adding those lines in
config.programs.tmux.extraConfig
but I prefer having something likeconfig.programs.tmux.catppuccin.extraConfigLate
.