Open D3vil0p3r opened 10 months ago
I was having the same issue. I was able resolved it by putting the plugin settings in the extraConfig
of the plugin itself instead of tmux.
{
programs.tmux = {
enable = true;
terminal = "xterm-256color";
historyLimit = 10000;
plugins = with pkgs.tmuxPlugins; [
{
plugin = power-theme;
extraConfig = ''
set -g @tmux_power_theme 'violet'
'';
}
{
plugin = resurrect;
extraConfig = ''
set -g @resurrect-capture-pane-contents 'on'
'';
}
{
plugin = continuum;
extraConfig = ''
set -g @continuum-restore 'on'
'';
}
vim-tmux-navigator
];
extraConfig = ''
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind \\ split-window -h
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.config/tmux/tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
'';
};
I tried your solution and it works with the power theme color, but it does not work for:
set -g @tmux_power_show_upload_speed true
set -g @tmux_power_show_download_speed true
Try moving any line that modifies the status-right
into the power-theme
config as well, e.g.
plugins = with pkgs.tmuxPlugins; [
{
plugin = power-theme;
extraConfig = ''
set -g @tmux_power_theme 'violet'
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
set -g status-right ...
'';
}
...
];
extraConfig = ''
...
''
The problem is that the extraConfig
content is placed after where the plugins (and their config) is dumped into tmux.conf
. When modifying the status-right
this ordering conflict can cause issues.
The problem I mentioned above is actually reported in #3555
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
perhaps related. I have a similar issue with dracula
plugin. The plugin does load but one of its sections seem to have issue accessing a non-existing tmp folder where it is expected to exists:
Perhaps some plugins require to be able to write to some tmp location for them to behave as expected.
Are you following the right branch?
Is there an existing issue for this?
Issue description
tmux_power_theme does not work when applied in
extraConfig
. It works only if I create manually a.tmux.conf
file.extraConfig
of tmux HM module seems to not apply anything oftmux_power_theme
as for example the theme, the upload and download speed, despite set to true.default.nix
Maintainer CC
@emilazy
System information