fix: add keymap for tmux in nvf
This commit is contained in:
parent
38df85a42a
commit
ebc7481553
2 changed files with 38 additions and 18 deletions
|
|
@ -186,6 +186,12 @@ in {
|
||||||
nowait = true;
|
nowait = true;
|
||||||
desc = "Notifications";
|
desc = "Notifications";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<ESC><ESC>";
|
||||||
|
mode = ["n"];
|
||||||
|
action = ":noh<CR>";
|
||||||
|
desc = "Clear highlight";
|
||||||
|
}
|
||||||
|
|
||||||
# === Tab === #
|
# === Tab === #
|
||||||
{
|
{
|
||||||
|
|
@ -209,6 +215,16 @@ in {
|
||||||
mode = ["t"];
|
mode = ["t"];
|
||||||
action = "<C-\\><C-n>:ToggleTerm<CR>";
|
action = "<C-\\><C-n>:ToggleTerm<CR>";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<C-_>";
|
||||||
|
mode = ["t"];
|
||||||
|
action = "<C-\\><C-n>:ToggleTerm<CR>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-_>";
|
||||||
|
mode = ["n"];
|
||||||
|
action = ":ToggleTerm<CR>";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
key = "<ESC><ESC>";
|
key = "<ESC><ESC>";
|
||||||
mode = ["t"];
|
mode = ["t"];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{ pkgs, config, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
let
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
getIconScript = pkgs.writeShellScript "get-icon" ''
|
getIconScript = pkgs.writeShellScript "get-icon" ''
|
||||||
get_icons() {
|
get_icons() {
|
||||||
local session_name="$1"
|
local session_name="$1"
|
||||||
|
|
@ -28,21 +30,22 @@ let
|
||||||
|
|
||||||
prefixKey = "C-Space";
|
prefixKey = "C-Space";
|
||||||
tmuxConfigPath = "/etc/tmux.conf";
|
tmuxConfigPath = "/etc/tmux.conf";
|
||||||
in
|
in {
|
||||||
{
|
environment = {
|
||||||
environment.variables = {
|
variables = {
|
||||||
TMUXINATOR_CONFIG = "/etc/tmuxinator";
|
TMUXINATOR_CONFIG = "/etc/tmuxinator";
|
||||||
};
|
};
|
||||||
environment.etc = {
|
etc = {
|
||||||
"tmuxinator/tmux.yaml" = {
|
"tmuxinator/tmux.yaml" = {
|
||||||
source = ../../home/config/tmux.yaml;
|
source = ../../home/config/tmux.yaml;
|
||||||
mode = "0444";
|
mode = "0444";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
tmuxinator
|
tmuxinator
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
tmux = {
|
tmux = {
|
||||||
|
|
@ -61,6 +64,7 @@ in
|
||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
set -s set-clipboard on
|
set -s set-clipboard on
|
||||||
set-option -s set-clipboard on
|
set-option -s set-clipboard on
|
||||||
|
set-option -g extended-keys on
|
||||||
|
|
||||||
set -g status "on"
|
set -g status "on"
|
||||||
set -g status-style fg=default,bg=default
|
set -g status-style fg=default,bg=default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue