From 3f9dbf1713eba25b0c95542673efa1ae25634acc Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 12 Aug 2026 14:33:31 +0200 Subject: [PATCH] remove toggleterm and add keybinds for split navigation --- nixos/nixvim/keymaps.nix | 28 ++++++++++++++++++++++++++-- nixos/nixvim/nixvim.nix | 2 ++ nixos/nixvim/plugins/plugins.nix | 1 - 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/nixos/nixvim/keymaps.nix b/nixos/nixvim/keymaps.nix index 02917ae..48b9818 100644 --- a/nixos/nixvim/keymaps.nix +++ b/nixos/nixvim/keymaps.nix @@ -6,8 +6,16 @@ action = " lua vim.lsp.buf.format() "; } { - key = ""; - action = "ToggleTerm size=10 direction=horizontal"; + key = "j"; + action = " split "; + } + { + key = "l"; + action = " vsplit "; + } + { + key = "t"; + action = "terminal"; } { key = "tf"; @@ -38,6 +46,22 @@ key = ""; action = "h"; } + { + key = ""; + action = ">"; + } + { + key = ""; + action = "+"; + } + { + key = ""; + action = "-"; + } + { + key = ""; + action = "<"; + } ]; }; } diff --git a/nixos/nixvim/nixvim.nix b/nixos/nixvim/nixvim.nix index b3c38eb..29940e3 100644 --- a/nixos/nixvim/nixvim.nix +++ b/nixos/nixvim/nixvim.nix @@ -25,6 +25,8 @@ shiftwidth = 8; expandtab = true; swapfile = false; + splitright = true; + splitbelow = true; }; extraPackages = with pkgs; [ nixfmt diff --git a/nixos/nixvim/plugins/plugins.nix b/nixos/nixvim/plugins/plugins.nix index 392ef6f..23d0ee6 100644 --- a/nixos/nixvim/plugins/plugins.nix +++ b/nixos/nixvim/plugins/plugins.nix @@ -1,7 +1,6 @@ { imports = [ ./barbar.nix - ./toggleterm.nix ./cord.nix ./telescope.nix ./statusline.nix