aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/nixvim/keymaps.nix
blob: 521363d9c0b17cb0a40830e7c93b0bdeda699862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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" ];
      }
      { key = "<c-c>"; action = "<cmd>NotificationsClear<cr>"; }
    ];
  };
}