Files
Dannecron/nvchad-config/mappings.lua
2024-03-07 15:46:59 +07:00

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