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
|
return {
{
"smart-splits.nvim",
after = function(_)
local map = vim.keymap.set
map("n", "<M-h>", require("smart-splits").move_cursor_left)
map("n", "<M-j>", require("smart-splits").move_cursor_down)
map("n", "<M-k>", require("smart-splits").move_cursor_up)
map("n", "<M-l>", require("smart-splits").move_cursor_right)
map("n", "<M-Left>", require("smart-splits").move_cursor_left)
map("n", "<M-Down>", require("smart-splits").move_cursor_down)
map("n", "<M-Up>", require("smart-splits").move_cursor_up)
map("n", "<M-Right>", require("smart-splits").move_cursor_right)
map("n", "<M-S-h>", require("smart-splits").resize_left)
map("n", "<M-S-j>", require("smart-splits").resize_down)
map("n", "<M-S-k>", require("smart-splits").resize_up)
map("n", "<M-S-l>", require("smart-splits").resize_right)
map("n", "<M-S-Left>", require("smart-splits").resize_left)
map("n", "<M-S-Down>", require("smart-splits").resize_down)
map("n", "<M-S-Up>", require("smart-splits").resize_up)
map("n", "<M-S-Right>", require("smart-splits").resize_right)
end,
},
{
"which-key.nvim",
event = "DeferredUIEnter",
after = function(_)
require("which-key").setup()
require("which-key").add({
{ "<leader>s", group = "search" },
{
mode = { "n", "v" },
{ "<leader>g", group = "git" },
{ "<leader>gh", group = "hunk" },
{ "<leader>S", group = "surround" },
},
})
end,
},
}
|