-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmappings.lua
69 lines (63 loc) · 1.27 KB
/
mappings.lua
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
64
65
66
67
68
69
---@type MappingsTable
local M = {}
M.general = {
n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
},
}
M.nvimtree = {
n = {
["<C-f>"] = { "<cmd> NvimTreeFindFile <CR>", "find file nvimtree" },
},
}
M.clipboard = {
n = {
["<leader>y"] = { '"+y', "Copy to clipboard" },
["<leader>p"] = { '"+p', "Paste from clipboard" },
},
}
M.fugitive = {
n = {
["<leader>gg"] = { "<Cmd>Git<CR>", "Open fugitive" },
},
}
M.copilot = {
n = {
["<leader>po"] = { "<Cmd>Copilot panel<CR>", "Open panel copilot" },
["<leader>pa"] = {
function()
require("copilot.panel").accept()
end,
"accept suggestion copilot",
},
["<leader>pn"] = {
function()
require("copilot.panel").jump_next()
end,
"Next suggestion copilot",
},
["<leader>pp"] = {
function()
require("copilot.panel").jump_prev()
end,
"Previous suggestion copilot",
},
["<leader>pr"] = {
function()
require("copilot.panel").refresh()
end,
"Refresh panel copilot",
},
},
}
M.telescope = {
n = {
["<leader>fw"] = {
function()
require("telescope").extensions.live_grep_args.live_grep_args()
end,
"live grep",
},
},
}
return M