-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmappings.lua
67 lines (61 loc) · 1.17 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
---@type MappingsTable
local M = {}
M.general = {
n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
["<leader>h"] = { "<cmd> nohlsearch <CR>", "Stop highlighting"},
},
}
M.nvterm = {
n = {
["<leader>gg"] = {
function()
local term = require("nvterm.terminal").new "float"
vim.api.nvim_chan_send(term.job_id, "lazygit\n")
end,
"lazy git",
},
},
}
M.dap = {
n = {
["<leader>db"] = {
function()
require("dap").toggle_breakpoint()
end,
"Set breakpoint",
},
["<leader>dc"] = {
function()
require("dap").continue()
end,
"Continue",
},
["<leader>di"] = {
function()
require("dap").step_into()
end,
"Step into",
},
["<leader>do"] = {
function()
require("dap").step_over()
end,
"Step over",
},
["<leader>ds"] = {
function()
require("dapui").toggle()
end,
"Toggle DAP UI",
},
},
}
M.hop = {
n = {
["<S-q>"] = { "<cmd> HopLineStart <CR>", "Hop to line"},
["<S-w>"] = { "<cmd> HopWord <CR>", "Hop to word"},
}
}
-- more keybinds!
return M