refactor: remove hardcoded closing keymaps on the terminal buffer

This commit is contained in:
NicolasGB
2025-11-23 16:34:42 +01:00
committed by Nicolas GB
parent a96a5c7849
commit 050608c2cc
3 changed files with 5 additions and 20 deletions
-14
View File
@@ -293,20 +293,6 @@ function M.run(cmd, keymaps)
{ modes = { "n", "v" }, lhs = "c", rhs = function() end },
{ modes = { "n", "v" }, lhs = "a", rhs = function() end },
{ modes = { "n", "v" }, lhs = "u", rhs = function() end },
-- Close terminal buffer
{
modes = { "n", "v" },
lhs = "q",
rhs = M.close_terminal_buffer,
opts = { desc = "Close the terminal buffer" },
},
-- Close terminal buffer with ESC
{
modes = "n",
lhs = "<ESC>",
rhs = M.close_terminal_buffer,
opts = { desc = "Close the terminal buffer" },
},
})
vim.b[state.buf].jj_keymaps_set = true