-
Notifications
You must be signed in to change notification settings - Fork 9
/
smart-splits.nix
63 lines (60 loc) · 1.56 KB
/
smart-splits.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
_:
{
opts = {
enable = true;
settings = {
ignored_filetypes = [ "nofile" "quickfix" "qf" "prompt" ];
ignored_buftypes = [ "nofile" ];
};
};
rootOpts.keymaps = [
{
mode = "n";
key = "<C-H>";
action.__raw = "function() require('smart-splits').move_cursor_left() end";
options.desc = "Move to left split";
}
{
mode = "n";
key = "<C-J>";
action.__raw = "function() require('smart-splits').move_cursor_down() end";
options.desc = "Move to below split";
}
{
mode = "n";
key = "<C-K>";
action.__raw = "function() require('smart-splits').move_cursor_up() end";
options.desc = "Move to above split";
}
{
mode = "n";
key = "<C-L>";
action.__raw = "function() require('smart-splits').move_cursor_right() end";
options.desc = "Move to right split";
}
{
mode = "n";
key = "<C-Up>";
action.__raw = "function() require('smart-splits').resize_up() end";
options.desc = "Resize split up";
}
{
mode = "n";
key = "<C-Down>";
action.__raw = "function() require('smart-splits').resize_down() end";
options.desc = "Resize split down";
}
{
mode = "n";
key = "<C-Left>";
action.__raw = "function() require('smart-splits').resize_left() end";
options.desc = "Resize split left";
}
{
mode = "n";
key = "<C-Right>";
action.__raw = "function() require('smart-splits').resize_right() end";
options.desc = "Resize split right";
}
];
}