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
712 B
39 lines
712 B
10 months ago
|
---@type MappingsTable
|
||
|
local M = {}
|
||
|
|
||
|
M.general = {
|
||
10 months ago
|
n = {
|
||
|
[";"] = { ":", "enter command mode", opts = { nowait = true } },
|
||
10 months ago
|
|
||
10 months ago
|
-- format with conform
|
||
|
["<leader>fm"] = {
|
||
|
function()
|
||
|
require("conform").format()
|
||
|
end,
|
||
|
"formatting",
|
||
|
},
|
||
|
},
|
||
10 months ago
|
|
||
10 months ago
|
v = {
|
||
10 months ago
|
-- Indentation
|
||
10 months ago
|
[">"] = { ">gv", "indent" },
|
||
10 months ago
|
-- Move selection up/down with K/J
|
||
|
["J"] = { ":m '>+1<CR>gv=gv", "move selection down" },
|
||
|
["K"] = { ":m '<-2<CR>gv=gv", "move selection up" },
|
||
10 months ago
|
},
|
||
10 months ago
|
|
||
|
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 },
|
||
|
},
|
||
|
},
|
||
10 months ago
|
}
|
||
|
|
||
|
-- more keybinds!
|
||
|
|
||
|
return M
|