home-manager
home-manager copied to clipboard
bug: order of `plugins` and `extraConfig` sections in generated `tmux.conf`
Are you following the right branch?
- [X] My Nixpkgs and Home Manager versions are in sync
Is there an existing issue for this?
- [X] I have searched the existing issues
Issue description
I feel that it's not a bug, and I misuse something, b/c nobody ever reported it, but the case should be common. Anyway.
In generated tmux.conf
, the plugins
section goes before extraConfig
. If I configure a status bar in the extraConfig
and want to use values from the plugins, it doesn't work since the status bar must be configured before run-shell
calls.
Should these sections be swapped in the output?
Maintainer CC
@rycee (mentioning b/c of git blame. couldn't find the maintainers list)
System information
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.11.0`
- channels(Alex): `"home-manager"`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
What's the status on this issue? Is there anyone working on a fix?
I think adding a configBeforePlugins
field makes sense as an escape hatch for me.
I think that a new config option sounds like a good idea. We need to try and preserve backwards compatibility, and moving the extraConfig
location would cause a breaking change.
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 you are the original author of the issue
- 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 not the original author of the 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.
Memorandum on closing issues
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.
Any news?
This is still needed. Some tmux plugins need to set some configurations before the plugin is loaded (i.e.: tmux-catppuccin)
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 you are the original author of the issue
- 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 not the original author of the 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.
Memorandum on closing issues
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.