mirror of
https://github.com/softinio/nix-config.git
synced 2025-09-03 16:16:42 -07:00
add tmux
This commit is contained in:
parent
2714a216e3
commit
0a6eae2a61
4 changed files with 150 additions and 0 deletions
38
programs/tmux/default.nix
Normal file
38
programs/tmux/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
tmuxConfig = builtins.readFile ./tmux.conf;
|
||||
|
||||
in
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
escapeTime = 10;
|
||||
historyLimit = 10000;
|
||||
keyMode = "vi";
|
||||
prefix = "C-a";
|
||||
terminal = "xterm-256color";
|
||||
extraConfig = tmuxConfig;
|
||||
plugins = with pkgs; [
|
||||
{
|
||||
plugin = tmuxPlugins.resurrect;
|
||||
extraConfig = "set -g @resurrect-strategy-nvim 'session'";
|
||||
}
|
||||
{
|
||||
plugin = tmuxPlugins.continuum;
|
||||
extraConfig = "set -g @continuum-restore 'on'";
|
||||
}
|
||||
{
|
||||
plugin = tmuxPlugins.sensible;
|
||||
}
|
||||
{
|
||||
plugin = tmuxPlugins.vim-tmux-navigator;
|
||||
}
|
||||
{
|
||||
plugin = tmuxPlugins.onedark-theme;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue