mirror of
https://github.com/Dannecron/Dannecron.git
synced 2025-12-26 00:32:35 +03:00
[nvchad] fix configuration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user