Configures tmux

This commit is contained in:
willemml 2024-12-17 13:40:05 -07:00
parent 97c49c2626
commit 392cb5c0ba
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
3 changed files with 41 additions and 2 deletions

View file

@ -8,6 +8,7 @@
imports = [
./helix.nix
./ssh.nix
./tmux.nix
./zsh.nix
];

View file

@ -1,6 +1,7 @@
{
inputs,
pkgs,
lib,
...
}: {
programs.helix = {
@ -9,12 +10,12 @@
{
name = "nix";
auto-format = true;
# language-servers = ["nixd-lsp"];
formatter = {command = "${pkgs.alejandra}/bin/alejandra";};
}
];
# languages.language-server.nixd-lsp.command = "${inputs.nixd.packages.${pkgs.system}.default}/bin/nixd";
settings.editor.line-number = "relative";
settings.editor.true-color = true;
settings.theme = lib.mkForce "gruvbox_dark_hard";
settings.keys = {
normal = {
space.w = ":w";

37
home/programs/tmux.nix Normal file
View file

@ -0,0 +1,37 @@
{pkgs, ...}: {
programs.tmux = {
enable = true;
clock24 = true;
mouse = true;
prefix = "C-s";
customPaneNavigationAndResize = true;
keyMode = "emacs";
terminal = "xterm-256color";
extraConfig = ''
set -g window-style 'bg=default'
set -ag terminal-overrides ",*256col*:RGB"
set -s escape-time 0
bind-key r source-file ~/.config/tmux/tmux.conf \; display "Reloaded from ~/.config/tmux/tmux.conf"
bind | split-window -h
bind ? split-window -v
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-h select-pane -L
bind -n M-n select-pane -D
bind -n M-e select-pane -U
bind -n M-i select-pane -R
'';
};
}