Преглед изворни кода

fix: lag in space when in terminal insert

Christian Chiarulli пре 2 година
родитељ
комит
3cb939bf2f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      lua/lvim/core/terminal.lua

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

@@ -39,6 +39,7 @@ M.config = function()
     -- { exec, keymap, name}
     -- lvim.builtin.terminal.execs = {{}} to overwrite
     -- lvim.builtin.terminal.execs[#lvim.builtin.terminal.execs+1] = {"gdb", "tg", "GNU Debugger"}
+    -- TODO: pls add mappings in which key and refactor this
     execs = {
       { "lazygit", "<leader>gg", "LazyGit", "float" },
     },
@@ -75,7 +76,7 @@ M.add_exec = function(opts)
     return
   end
 
-  vim.keymap.set({ "n", "t" }, opts.keymap, function()
+  vim.keymap.set({ "n" }, opts.keymap, function()
     M._exec_toggle { cmd = opts.cmd, count = opts.count, direction = opts.direction }
   end, { desc = opts.label, noremap = true, silent = true })
 end