Configuration files for my GNU/Linux installation.
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.
dotfiles/nvchad/.config/nvim/lua/custom/mappings.lua

30 lines
442 B

---@type MappingsTable
local M = {}
M.general = {
10 months ago
n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
10 months ago
-- format with conform
["<leader>fm"] = {
function()
require("conform").format()
end,
"formatting",
},
},
v = {
[">"] = { ">gv", "indent" },
},
10 months ago
s = {
-- Move up and down when selected
["J"] = { ":m '>+1<CR>gv=gv" },
["K"] = { ":m '<-2<CR>gv=gv" },
},
}
-- more keybinds!
return M