summaryrefslogtreecommitdiff
path: root/lua/lvim/core
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2022-09-20 21:34:03 -0400
committerChristian Chiarulli <[email protected]>2022-09-20 21:34:03 -0400
commit3cb939bf2fa01769a556ebf5876fe5a84354a8da (patch)
tree203d91c0b540a205b3c3a838138f186404630605 /lua/lvim/core
parentbcfb980d204cdff012a555050245060eebdb608c (diff)
fix: lag in space when in terminal insert
Diffstat (limited to 'lua/lvim/core')
-rw-r--r--lua/lvim/core/terminal.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lvim/core/terminal.lua b/lua/lvim/core/terminal.lua
index ac844b11..8b44ec19 100644
--- a/lua/lvim/core/terminal.lua
+++ b/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