mirror of
https://github.com/Dannecron/Dannecron.git
synced 2025-12-26 00:32:35 +03:00
45 lines
781 B
Lua
45 lines
781 B
Lua
---@type MappingsTable
|
|
local M = {}
|
|
|
|
M.general = {
|
|
n = {
|
|
["<C-]>"] = {
|
|
function()
|
|
require("nvterm.terminal").toggle "vertical"
|
|
end,
|
|
},
|
|
["<C-\\>"] = {
|
|
function()
|
|
require("nvterm.terminal").toggle "horizontal"
|
|
end,
|
|
},
|
|
["\\"] = { "<cmd>:vsplit <CR>", "Vertical split" },
|
|
-- format with conform
|
|
["<leader>fm"] = {
|
|
function()
|
|
require("conform").format()
|
|
end,
|
|
"formatting",
|
|
}
|
|
},
|
|
v = {
|
|
[">"] = { ">gv", "indent"},
|
|
},
|
|
t = {
|
|
["<C-]>"] = {
|
|
function()
|
|
require("nvterm.terminal").toggle "vertical"
|
|
end,
|
|
},
|
|
["<C-\\>"] = {
|
|
function()
|
|
require("nvterm.terminal").toggle "horizontal"
|
|
end,
|
|
},
|
|
},
|
|
}
|
|
|
|
-- more keybinds!
|
|
|
|
return M
|