rm mapping <ESC> in terminal mode #2817

it could cause other issues too, just as #2817 so removing it
This commit is contained in:
siduck 2024-05-03 14:23:02 +05:30
parent 53df5e175a
commit 156eeef8ec

View File

@ -106,11 +106,6 @@ map({ "n", "t" }, "<A-i>", function()
require("nvchad.term").toggle { pos = "float", id = "floatTerm" } require("nvchad.term").toggle { pos = "float", id = "floatTerm" }
end, { desc = "terminal toggle floating term" }) end, { desc = "terminal toggle floating term" })
map("t", "<ESC>", function()
local win = vim.api.nvim_get_current_win()
vim.api.nvim_win_close(win, true)
end, { desc = "terminal close term in terminal mode" })
-- whichkey -- whichkey
map("n", "<leader>wK", "<cmd>WhichKey <CR>", { desc = "whichkey all keymaps" }) map("n", "<leader>wK", "<cmd>WhichKey <CR>", { desc = "whichkey all keymaps" })