about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-19 20:29:40 +0200
committerSoispha <soispha@vhack.eu>2023-08-19 20:29:40 +0200
commit91a46be1960fc80f86c18c093c1e95673102cfea (patch)
tree2a766d1b6d1e7b7db2b1e2e0f686a174f95c6beb /home-manager
parentFix(hm/conf/neovim): Remap '<C-Space>' to '<S-Tab>' as alacritty already uses it (diff)
downloadnixos-config-91a46be1960fc80f86c18c093c1e95673102cfea.zip
Fix(hm/conf/neovim): Remove duplicate mapping, which mapped n to n
This would otherwise unmap the mapping of n to "g<up>", thus making
upwards movement impossible.
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/mappings/default.nix13
1 files changed, 5 insertions, 8 deletions
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 @@
         "<Left>" = "<Nop>";
         "<Right>" = "<Nop>";
 
-        # 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<Esc>";
           "O" = "O<Esc>";
 
-          # Center the cursor vertically when moving to the next word during a search.
-          "n" = "nzzzv";
-          #"N" = "Nzzzv";
-
           "<leader>p" = {
             action = "\"_dP";
             desc = "keep the cut thing in the base register";