diff options
author | kylo252 <[email protected]> | 2022-01-08 20:02:27 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-08 20:02:27 +0100 |
commit | 152904e38280468a69a5a72af2cda750ff4fc835 (patch) | |
tree | 1d0bedc0c1032f625f2474873cb9d16f8dafc09f /lua/lvim | |
parent | fc043d738b0a10a0941515a86a2af54a21654986 (diff) |
refactor(term): leave the first few ids unassigned (#2156)
Diffstat (limited to 'lua/lvim')
-rw-r--r-- | lua/lvim/core/terminal.lua | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lua/lvim/core/terminal.lua b/lua/lvim/core/terminal.lua index c5d1ea04..441ab61e 100644 --- a/lua/lvim/core/terminal.lua +++ b/lua/lvim/core/terminal.lua @@ -50,25 +50,13 @@ M.setup = function() local terminal = require "toggleterm" terminal.setup(lvim.builtin.terminal) - -- setup the default terminal so it's always reachable - local default_term_opts = { - cmd = lvim.builtin.terminal.shell, - keymap = lvim.builtin.terminal.open_mapping, - label = "Toggle terminal", - count = 1, - direction = lvim.builtin.terminal.direction, - size = lvim.builtin.terminal.size, - } - 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 = { cmd = exec[1], keymap = exec[2], label = exec[3], - count = i + 1, + -- NOTE: unable to consistently bind id/count <= 9, see #2146 + count = i + 100, direction = exec[4] or lvim.builtin.terminal.direction, size = lvim.builtin.terminal.size, } |