44 lines
807 B
Lua
44 lines
807 B
Lua
local M = {}
|
|
|
|
M.general = {
|
|
n = {
|
|
["<A-j>"] = { "10+", "Move cursor forward by 10 lines"},
|
|
["<A-k>"] = { "10-", "Move cursor backward by 10 lines"},
|
|
},
|
|
v = {
|
|
["<A-j>"] = { "10+", "Move cursor forward by 10 lines"},
|
|
["<A-k>"] = { "10-", "Move cursor backward by 10 lines"},
|
|
},
|
|
}
|
|
|
|
M.copilot = {
|
|
i = {
|
|
["<C-a>"] = {
|
|
function()
|
|
vim.fn.feedkeys(vim.fn['copilot#Accept'](), '')
|
|
end,
|
|
"Copilot Accept",
|
|
{replace_keycodes = true, nowait=true, silent=true, expr=true, noremap=true}
|
|
}
|
|
}
|
|
}
|
|
|
|
M.dap = {
|
|
plugin = true,
|
|
n = {
|
|
["<leader>db"] = {"<cmd> DapToggleBreakpoint <CR>"}
|
|
}
|
|
}
|
|
|
|
M.dap_python = {
|
|
plugin = true,
|
|
n = {
|
|
["<leader>dpr"] = {
|
|
function()
|
|
require('dap-python').test_method()
|
|
end
|
|
}
|
|
}
|
|
}
|
|
|
|
return M
|