[nvchad] fix configuration

This commit is contained in:
2025-03-03 11:18:02 +07:00
parent 78ab401193
commit cc4fd91e74
15 changed files with 205 additions and 201 deletions

View File

@@ -1,26 +1,19 @@
---@type MappingsTable
local M = {}
require "nvchad.mappings"
M.general = {
n = {
["<C-]>"] = {
function()
require("nvterm.terminal").toggle "vertical"
end,
},
},
v = {
[">"] = { ">gv", "indent" },
},
t = {
["<C-]>"] = {
function()
require("nvterm.terminal").toggle "vertical"
end,
},
},
}
-- add yours here
-- more keybinds!
local map = vim.keymap.set
-- Normal
map("n", ";", ":", { desc = "CMD enter command mode" })
map("n", "<C-]>", function() require("nvterm.terminal").toggle "vertical" end, { desc = "open terminal" })
-- Input
map("i", "jk", "<ESC>")
-- Visual
map("v", ">", ">gv", { desc = "indent" })
-- Terminal
map("t", "<C-]>", function() require("nvterm.terminal").toggle "vertical" end, { desc = "close terminal" })
return M