Merge pull request #24 from polarmutex/fix-terminal-config

fix send command getting right terminal config
This commit is contained in:
ThePrimeagen 2021-03-13 13:06:09 -07:00 committed by GitHub
commit 3aa8cd9d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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