tmux conf?

This commit is contained in:
Zynh Ludwig 2024-07-08 02:00:43 -07:00
parent 0a97c222ee
commit 14281d5615

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: { lib, config, pkgs, ... }:
let let
cfg = config.snowhawk.tmux; cfg = config.snowhawk.tmux;
@ -11,6 +11,35 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
shell = "${pkgs.fish}/bin/fish";
mouse = true;
baseIndex = 1;
terminal = "xterm-256color";
newSession = true;
plugins = with pkgs; [
{
plugin = tmuxPlugins.rose-pine;
extraConfig = ''
set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'
set -g @rose_pine_host 'on'
set -g @rose_pine_date_time '%c' # %c is a good value but
'';
}
{
plugin = tmuxPlugins.vim-tmux-navigator;
}
];
extraConfig = ''
set-option -g renumber-windows on
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind-key -r f run-shell "tmux neww ~/.user/scripts/tmux-sessionizer"
'';
}; };
}; };
} }