mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 03:07:17 +00:00
Configures tmux
This commit is contained in:
parent
97c49c2626
commit
392cb5c0ba
3 changed files with 41 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
|||
imports = [
|
||||
./helix.nix
|
||||
./ssh.nix
|
||||
./tmux.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -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
37
home/programs/tmux.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue