Преглед на файлове

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()