nvchad-custom/mappings.lua

27 lines
559 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-02-26 08:54:13 -06:00
return M