mirror of
https://github.com/Dannecron/Dannecron.git
synced 2025-12-25 16:22:35 +03:00
add nvchad-config
This commit is contained in:
44
nvchad-config/mappings.lua
Normal file
44
nvchad-config/mappings.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
---@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
|
||||
Reference in New Issue
Block a user