diff options
Diffstat (limited to 'modules/tools/nixvim/keymaps.nix')
| -rw-r--r-- | modules/tools/nixvim/keymaps.nix | 17 |
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" ]; + } + ]; + }; +} |
