mirror of https://github.com/E-Almqvist/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
661 B
39 lines
661 B
---@type MappingsTable
|
|
local M = {}
|
|
|
|
M.general = {
|
|
n = {
|
|
[";"] = { ":", "enter command mode", opts = { nowait = true } },
|
|
|
|
-- format with conform
|
|
["<leader>fm"] = {
|
|
function()
|
|
require("conform").format()
|
|
end,
|
|
"formatting",
|
|
},
|
|
},
|
|
v = {
|
|
[">"] = { ">gv", "indent" },
|
|
},
|
|
|
|
s = {
|
|
-- Move up and down when selected
|
|
["J"] = { ":m '>+1<CR>gv=gv" },
|
|
["K"] = { ":m '<-2<CR>gv=gv" },
|
|
},
|
|
|
|
i = {
|
|
["<C-l>"] = {
|
|
function()
|
|
vim.fn.feedkeys(vim.fn["copilot#Accept"](), "")
|
|
end,
|
|
"Copilot Accept",
|
|
{ replace_keycodes = true, nowait = true, silent = true, expr = true, noremap = true },
|
|
},
|
|
},
|
|
}
|
|
|
|
-- more keybinds!
|
|
|
|
return M
|
|
|