diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:02:29 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:03:04 +0530 |
| commit | 01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (patch) | |
| tree | 88560b79fa71e3b83d9d9aca6d1bb40673a1a170 /modules/development/nixvim/keymaps.nix | |
| parent | 2c573bb0c437b83fe629a9a5b818c976d2dfd796 (diff) | |
| download | home-manager-config-01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95.tar.gz home-manager-config-01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95.zip | |
refactor: organized the modules into better categories
Instead of lumping everything in modules/programs we are separating them
into separate directories in modules/
Diffstat (limited to 'modules/development/nixvim/keymaps.nix')
| -rw-r--r-- | modules/development/nixvim/keymaps.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/development/nixvim/keymaps.nix b/modules/development/nixvim/keymaps.nix new file mode 100644 index 0000000..4e4b35a --- /dev/null +++ b/modules/development/nixvim/keymaps.nix @@ -0,0 +1,41 @@ +{ config, lib, ... }: + +# Keymaps - Keyboard shortcut configuration for nixvim +{ + config.programs.nixvim.keymaps = lib.mkIf config.programs.nixvim.enable [ + { + key = "<c-h>"; + action = "<c-w>h"; + options.desc = "Move to left window"; + } + { + key = "<c-w>"; + action = "<c-w>j"; + options.desc = "Move to bottom window"; + } + { + key = "<c-k>"; + action = "<c-w>k"; + options.desc = "Move to top window"; + } + { + key = "<c-l>"; + action = "<c-w>l"; + options.desc = "Move to right window"; + } + { + key = "<c-n>"; + action = "<cmd>NvimTreeToggle<cr>"; + mode = [ + "n" + "i" + ]; + options.desc = "Toggle file explorer"; + } + { + key = "<c-c>"; + action = "<cmd>NotificationsClear<cr>"; + options.desc = "Clear notifications"; + } + ]; +} |
