Skip to content

Commit 30ebc00

Browse files
committed
update tmux config
1 parent fd53a40 commit 30ebc00

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

modules/home-manager/fzf.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ in {
1313
fileWidgetOptions = [
1414
"--preview '${lib.getExe pkgs.bat} --color=always --plain --line-range=:200 {}'"
1515
];
16+
tmux.enableShellIntegration = true;
1617
changeDirWidgetCommand = "${fd} -H --type d";
1718
changeDirWidgetOptions = ["--preview '${pkgs.tree}/bin/tree -C {} | head -200'"];
1819
historyWidgetOptions = [];

modules/home-manager/tmux.nix

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
1-
{...}: {
1+
{
2+
pkgs,
3+
lib,
4+
...
5+
}: {
6+
home.packages = lib.optionals (pkgs.stdenvNoCC.isDarwin) [
7+
pkgs.reattach-to-user-namespace
8+
];
29
programs.tmux = {
310
enable = true;
11+
clock24 = true;
12+
historyLimit = 50000;
13+
escapeTime = 0;
14+
focusEvents = true;
15+
keyMode = "vi";
16+
plugins = with pkgs.tmuxPlugins; [
17+
tmux-floax
18+
tmux-sessionx
19+
tmux-thumbs
20+
tmux-which-key
21+
sensible
22+
];
23+
extraConfig =
24+
''
25+
set -as terminal-features ",*-256color:RGB"
26+
bind g display-popup -E -xC -yC -w 80% -h 80% -d "#{pane_current_path}" ${pkgs.lazygit}/bin/lazygit
27+
''
28+
+ lib.optionalString pkgs.stdenvNoCC.isDarwin ''
29+
set -g default-command "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace -l zsh"
30+
'';
431
};
532
}

0 commit comments

Comments
 (0)