浏览代码

refactor: don't bind `t` for `<space>` binds

opalmay 2 年之前
父节点
当前提交
5f54ff7720
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lua/lvim/core/terminal.lua

+ 1 - 1
lua/lvim/core/terminal.lua

@@ -92,7 +92,7 @@ local function add_term_keymap(term_opts)
   end
 
   local modes = { "n" }
-  if not term_opts.keymap:find "<leader>" then
+  if not term_opts.keymap:find "<leader>" and not term_opts.keymap:find "<space>" then
     table.insert(modes, "t")
   end
   vim.keymap.set(modes, term_opts.keymap, function()