remove toggleterm and add keybinds for split navigation

This commit is contained in:
lucy 2026-08-12 14:33:31 +02:00
commit 3f9dbf1713
3 changed files with 28 additions and 3 deletions

View file

@ -6,8 +6,16 @@
action = "<cmd> lua vim.lsp.buf.format() <cr>"; action = "<cmd> lua vim.lsp.buf.format() <cr>";
} }
{ {
key = "<c-t>"; key = "<leader>j";
action = "<cmd>ToggleTerm size=10 direction=horizontal<cr>"; action = "<cmd> split <cr>";
}
{
key = "<leader>l";
action = "<cmd> vsplit <cr>";
}
{
key = "<leader>t";
action = "<cmd>terminal<cr>";
} }
{ {
key = "<leader>tf"; key = "<leader>tf";
@ -38,6 +46,22 @@
key = "<C-h>"; key = "<C-h>";
action = "<C-W>h"; action = "<C-W>h";
} }
{
key = "<M-l>";
action = "<C-W>>";
}
{
key = "<M-k>";
action = "<C-W>+";
}
{
key = "<M-j>";
action = "<C-W>-";
}
{
key = "<M-h>";
action = "<C-W><";
}
]; ];
}; };
} }

View file

@ -25,6 +25,8 @@
shiftwidth = 8; shiftwidth = 8;
expandtab = true; expandtab = true;
swapfile = false; swapfile = false;
splitright = true;
splitbelow = true;
}; };
extraPackages = with pkgs; [ extraPackages = with pkgs; [
nixfmt nixfmt

View file

@ -1,7 +1,6 @@
{ {
imports = [ imports = [
./barbar.nix ./barbar.nix
./toggleterm.nix
./cord.nix ./cord.nix
./telescope.nix ./telescope.nix
./statusline.nix ./statusline.nix