feat: add termux tts support

This commit is contained in:
JuanZoran
2023-04-02 11:01:37 +08:00
parent 9357574b5c
commit 576f1eb66a
5 changed files with 38 additions and 30 deletions

View File

@ -23,12 +23,8 @@ function M.setup()
for action, key in pairs(M.opts.keymaps) do
set('n', key, function()
local instance = M.get_active_instance()
if instance then
coroutine.wrap(instance.execute)(instance, action)
else
return key
end
return instance and coroutine.wrap(instance.execute)(instance, action) or key
-- TODO : Fix remap
end)
end
end