I would like to disable the Alt-h key combination that brings up the horizontal terminal in Neovim.
I see the original mapping in ~/.config/nvim/lua/core/mappings.lua
:
["<A-h>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
"Toggle horizontal term",
},
This mapping is for normal mode (n
).
I'm looking to add an override in .config/nvim/lua/custom/init.lua
.
I've tried all sorts of approaches, using unmap
, vim.api.nvim_set_keymap
, map <Esc-h> <Nop>
, and more, but I can't find something that works apart from commenting out the original code, which is not a good solution.
Any pointers appreciated.
Note - I have NVChad installed, if this has any impact.