mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
fix send command getting right config
This commit is contained in:
parent
7241be0558
commit
0b147a2339
@ -1,8 +1,7 @@
|
||||
local harpoon = require('harpoon')
|
||||
local Path = require("plenary.path")
|
||||
|
||||
local M = {}
|
||||
|
||||
terminal_config = terminal_config or { }
|
||||
local terminals = {}
|
||||
|
||||
function create_terminal()
|
||||
@ -53,7 +52,7 @@ M.sendCommand = function(idx, cmd)
|
||||
local term_handle = find_terminal(idx)
|
||||
|
||||
if type(cmd) == "number" then
|
||||
cmd = terminal_config.cmds[cmd]
|
||||
cmd = harpoon.get_term_config().cmds[cmd]
|
||||
end
|
||||
|
||||
if cmd then
|
||||
|
Loading…
x
Reference in New Issue
Block a user