fix(terminal): allow disabling the open binding for toggleterm

This commit is contained in:
Chase Colman 2021-12-11 16:57:52 +08:00
parent cbb94752ae
commit abf127db83

View file

@ -60,7 +60,9 @@ M.setup = function()
direction = lvim.builtin.terminal.direction,
size = lvim.builtin.terminal.size,
}
M.add_exec(default_term_opts)
if lvim.builtin.terminal.open_mapping then
M.add_exec(default_term_opts)
end
for i, exec in pairs(lvim.builtin.terminal.execs) do
local opts = {