nvchad-custom/mappings.lua

26 lines
559 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}
}
}
}
return M