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