lots of stuff idk

This commit is contained in:
xunuwu 2024-04-04 19:43:43 +02:00
parent a18ceb4f2e
commit 4e5f0a6e0b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
39 changed files with 439 additions and 81 deletions

View file

@ -21,16 +21,6 @@
-- Keys
c.leader = { key = 'j', mods = 'CTRL', timeout_milliseconds = 1000 }
c.keys = {
{
key = 'v',
mods = 'LEADER',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 's',
mods = 'LEADER',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
key = 'q',
mods = 'LEADER',
@ -41,6 +31,60 @@
mods = 'LEADER',
action = wezterm.action.TogglePaneZoomState,
},
{
key = 'h',
mods = 'LEADER',
action = wezterm.action.ActivatePaneDirection('Left'),
},
{
key = 'j',
mods = 'LEADER',
action = wezterm.action.ActivatePaneDirection('Down'),
},
{
key = 'k',
mods = 'LEADER',
action = wezterm.action.ActivatePaneDirection('Up'),
},
{
key = 'l',
mods = 'LEADER',
action = wezterm.action.ActivatePaneDirection('Right'),
},
{
key = 'H',
mods = 'LEADER',
action = wezterm.action.SplitPane { direction = 'Left' },
},
{
key = 'J',
mods = 'LEADER',
action = wezterm.action.SplitPane { direction = 'Down' },
},
{
key = 'K',
mods = 'LEADER',
action = wezterm.action.SplitPane { direction = 'Up' },
},
{
key = 'L',
mods = 'LEADER',
action = wezterm.action.SplitPane { direction = 'Right' },
},
{
key = 's',
mods = 'LEADER',
action = wezterm.action.PaneSelect {
mode = "Activate"
},
},
{
key = ';',
mods = 'LEADER',
action = wezterm.action.PaneSelect {
mode = "SwapWithActive"
},
},
}
return c

View file

@ -1,6 +1,7 @@
{
imports = [
./git.nix
./github.nix
./direnv.nix
./xdg.nix
./comma.nix

View file

@ -0,0 +1,4 @@
{
programs.gh.enable = true;
programs.gh-dash.enable = true;
}

View file

@ -5,5 +5,10 @@
clock24 = true;
mouse = true;
escapeTime = 0;
extraConfig = ''
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}";
'';
};
}

View file

@ -5,7 +5,7 @@
enable = true;
autocd = true;
enableCompletion = true;
enableAutosuggestions = true;
autosuggestion.enable = true;
dotDir = ".config/zsh";
defaultKeymap = "emacs";