Update
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
{
|
||||
imports =
|
||||
[ ./kitty ./lf ./neofetch ./nvim ./qutebrowser ./spicetify ./wofi ./cava ];
|
||||
imports = [
|
||||
./kitty
|
||||
./lf
|
||||
./neofetch
|
||||
./nvim
|
||||
./qutebrowser
|
||||
./spicetify
|
||||
./wofi
|
||||
./cava
|
||||
./tmux
|
||||
];
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
confirm_os_window_close = "0";
|
||||
remember_window_size = "no";
|
||||
disable_ligatures = "never";
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
shell = "${pkgs.tmux}/bin/tmux";
|
||||
initial_window_width = 1200;
|
||||
initial_window_height = 600;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, inputs, ... }: {
|
||||
{ inputs, ... }: {
|
||||
imports = [
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
./auto-pairs.nix
|
||||
@@ -22,6 +22,7 @@
|
||||
./comment.nix
|
||||
./oil.nix
|
||||
./trouble.nix
|
||||
./tmux-navigator.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
|
||||
@@ -46,19 +46,19 @@
|
||||
|
||||
{
|
||||
key = "<C-h>";
|
||||
action = "<C-w>h";
|
||||
action = "<cmd>TmuxNavigateLeft<cr>";
|
||||
}
|
||||
{
|
||||
key = "<C-j>";
|
||||
action = "<C-w>j";
|
||||
action = "<cmd>TmuxNavigateDown<cr>";
|
||||
}
|
||||
{
|
||||
key = "<C-k>";
|
||||
action = "<C-w>k";
|
||||
action = "<cmd>TmuxNavigateUp<cr>";
|
||||
}
|
||||
{
|
||||
key = "<C-l>";
|
||||
action = "<C-w>l";
|
||||
action = "<cmd>TmuxNavigateRight<cr>";
|
||||
}
|
||||
|
||||
# Terminal Mappings
|
||||
|
||||
1
home/apps/nvim/tmux-navigator.nix
Normal file
1
home/apps/nvim/tmux-navigator.nix
Normal file
@@ -0,0 +1 @@
|
||||
{ programs.nixvim.plugins.tmux-navigator = { enable = true; }; }
|
||||
46
home/apps/tmux/default.nix
Normal file
46
home/apps/tmux/default.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
mouse = true;
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
prefix = "C-s";
|
||||
terminal = "kitty";
|
||||
keyMode = "vi";
|
||||
|
||||
extraConfig = ''
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
bind-key k select-pane -U
|
||||
bind-key l select-pane -R
|
||||
'';
|
||||
|
||||
plugins = with pkgs; [
|
||||
tmuxPlugins.vim-tmux-navigator
|
||||
{
|
||||
plugin = tmuxPlugins.catppuccin;
|
||||
extraConfig = ''
|
||||
set-option -g status-position top
|
||||
set -g @catppuccin_window_left_separator ""
|
||||
set -g @catppuccin_window_right_separator " "
|
||||
set -g @catppuccin_window_middle_separator " █"
|
||||
set -g @catppuccin_window_number_position "right"
|
||||
|
||||
set -g @catppuccin_window_default_fill "number"
|
||||
set -g @catppuccin_window_default_text "#W"
|
||||
|
||||
set -g @catppuccin_window_current_fill "number"
|
||||
set -g @catppuccin_window_current_text "#W"
|
||||
|
||||
set -g @catppuccin_status_modules_right "directory session"
|
||||
set -g @catppuccin_status_left_separator " "
|
||||
set -g @catppuccin_status_right_separator ""
|
||||
set -g @catppuccin_status_fill "icon"
|
||||
set -g @catppuccin_status_connect_separator "no"
|
||||
|
||||
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||
set -g @catppuccin_status_background "default"
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user