60 lines
1.1 KiB
Lua
60 lines
1.1 KiB
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>dpu"] = {
|
|
function ()
|
|
local dapui = require("dapui")
|
|
dapui.toggle()
|
|
end
|
|
},
|
|
["<leader>dpa"] = {
|
|
function()
|
|
local dap = require('dap')
|
|
dap.run({
|
|
type = 'python',
|
|
request = 'attach',
|
|
name = 'Debugpy',
|
|
justMyCode = false,
|
|
connect = {
|
|
host = '127.0.0.1',
|
|
port = 5678,
|
|
}
|
|
})
|
|
end
|
|
}
|
|
}
|
|
}
|
|
|
|
return M
|