aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/nixvim/keymaps.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-10 22:42:35 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-10 22:42:35 +0530
commit54142dba0991ecbe3031ef532d0a379ee3c58871 (patch)
tree41866321ef5a0de9d88a196f5ddefb27b610c37f /modules/tools/nixvim/keymaps.nix
parent24f75195cab9350495422d8771aa0c30b90a235f (diff)
downloadhome-manager-config-54142dba0991ecbe3031ef532d0a379ee3c58871.tar.gz
home-manager-config-54142dba0991ecbe3031ef532d0a379ee3c58871.zip
Separated nixvim config into modules
Diffstat (limited to 'modules/tools/nixvim/keymaps.nix')
-rw-r--r--modules/tools/nixvim/keymaps.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/tools/nixvim/keymaps.nix b/modules/tools/nixvim/keymaps.nix
new file mode 100644
index 0000000..c6990b6
--- /dev/null
+++ b/modules/tools/nixvim/keymaps.nix
@@ -0,0 +1,17 @@
+{ pkgs, config, lib, ... }:
+
+{
+ config = lib.mkIf config.tools.nixvim.enable {
+ programs.nixvim.keymaps = [
+ { key = "<c-h>"; action = "<c-w>h"; }
+ { key = "<c-w>"; action = "<c-w>j"; }
+ { key = "<c-k>"; action = "<c-w>k"; }
+ { key = "<c-l>"; action = "<c-w>l"; }
+ {
+ key = "<c-n>";
+ action = "<cmd>NvimTreeToggle<cr>";
+ mode = [ "n" "i" ];
+ }
+ ];
+ };
+}