2024-02-26 08:54:13 -06:00
|
|
|
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"},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2024-03-05 10:41:49 -06:00
|
|
|
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}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-07 10:49:33 -06:00
|
|
|
M.dap = {
|
|
|
|
plugin = true,
|
|
|
|
n = {
|
|
|
|
["<leader>db"] = {"<cmd> DapToggleBreakpoint <CR>"}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
M.dap_python = {
|
|
|
|
plugin = true,
|
|
|
|
n = {
|
2024-04-04 13:38:47 -05:00
|
|
|
["<leader>dpu"] = {
|
|
|
|
function ()
|
|
|
|
local dapui = require("dapui")
|
|
|
|
dapui.toggle()
|
|
|
|
end
|
|
|
|
},
|
|
|
|
["<leader>dpa"] = {
|
2024-03-07 10:49:33 -06:00
|
|
|
function()
|
2024-04-04 07:35:22 -05:00
|
|
|
local dap = require('dap')
|
|
|
|
dap.run({
|
|
|
|
type = 'python',
|
|
|
|
request = 'attach',
|
|
|
|
name = 'Debugpy',
|
|
|
|
justMyCode = false,
|
|
|
|
connect = {
|
|
|
|
host = '127.0.0.1',
|
|
|
|
port = 5678,
|
|
|
|
}
|
|
|
|
})
|
2024-03-07 10:49:33 -06:00
|
|
|
end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-26 08:54:13 -06:00
|
|
|
return M
|