From 91a46be1960fc80f86c18c093c1e95673102cfea Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 19 Aug 2023 20:29:40 +0200 Subject: Fix(hm/conf/neovim): Remove duplicate mapping, which mapped n to n This would otherwise unmap the mapping of n to "g", thus making upwards movement impossible. --- .../soispha/config/neovim/nixvim/mappings/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'home-manager') diff --git a/home-manager/soispha/config/neovim/nixvim/mappings/default.nix b/home-manager/soispha/config/neovim/nixvim/mappings/default.nix index 20802e7c..f8937cbe 100644 --- a/home-manager/soispha/config/neovim/nixvim/mappings/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/mappings/default.nix @@ -37,7 +37,7 @@ cmp.confirm() end ''; - lua = true; + lua = true; desc = "confirm the selected item"; }; } @@ -55,9 +55,10 @@ "" = ""; "" = ""; - # remap dvorak - "l" = "n"; - "L" = "N"; + # Center the cursor vertically when moving to the next word during a search. + "l" = "nzzzv"; + "L" = "Nzzzv"; + # remap the other keys to dvorak "k" = "t"; "K" = "T"; "j" = "k"; @@ -108,10 +109,6 @@ "o" = "o"; "O" = "O"; - # Center the cursor vertically when moving to the next word during a search. - "n" = "nzzzv"; - #"N" = "Nzzzv"; - "p" = { action = "\"_dP"; desc = "keep the cut thing in the base register"; -- cgit 1.4.1