2024-09-24 21:47:52 +00:00
|
|
|
{pkgs, ...}: {
|
2024-08-25 19:58:12 +00:00
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
|
|
|
prefix = "C-space";
|
|
|
|
escapeTime = 10;
|
|
|
|
clock24 = true;
|
|
|
|
keyMode = "vi";
|
2024-09-24 13:09:36 +00:00
|
|
|
mouse = true;
|
2024-08-25 19:58:12 +00:00
|
|
|
baseIndex = 1;
|
|
|
|
extraConfig = ''
|
|
|
|
set-option -a terminal-features "''${TERM}:RGB"
|
2025-01-14 09:36:18 +00:00
|
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
|
|
|
bind '%' split-window -h -c "#{pane_current_path}"
|
|
|
|
bind C-k clear-history
|
2024-08-25 19:58:12 +00:00
|
|
|
'';
|
|
|
|
plugins = with pkgs; [
|
|
|
|
tmuxPlugins.vim-tmux-navigator
|
|
|
|
tmuxPlugins.yank
|
|
|
|
];
|
|
|
|
};
|
2024-08-26 13:08:32 +00:00
|
|
|
programs.fzf.tmux.enableShellIntegration = true;
|
2024-08-25 19:58:12 +00:00
|
|
|
}
|