mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 16:46:11 +01:00
39 lines
597 B
Lua
39 lines
597 B
Lua
---@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"},
|
|
},
|
|
}
|
|
|
|
M.dap = {
|
|
plugin = true,
|
|
n = {
|
|
["<leader>db"] = {
|
|
"<cmd> DapToggleBreakpoint <CR>",
|
|
"Add breakpoint at line",
|
|
},
|
|
["<leader>dr"] = {
|
|
"<cmd> DapContinue <CR>",
|
|
"Start or continue the debugger",
|
|
}
|
|
}
|
|
}
|
|
|
|
-- more keybinds!
|
|
|
|
return M
|