nvchad-custom/mappings.lua

45 lines
807 B
Lua
Raw Normal View History

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"},
},
}
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 = {
["<leader>dpr"] = {
function()
require('dap-python').test_method()
end
}
}
}
2024-02-26 08:54:13 -06:00
return M