You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loving nvterm. I have mapped a binding to use .send to run lazygit in a new term. Is there a way to assign focus to the term when using .send? I noticed auto-focus works when using .toggle or .new, but not .send.
The text was updated successfully, but these errors were encountered:
I encountered the same problem and went with this for the time being:
["<leader>gg"] = {
function()
localnvterm=require"nvterm.terminal"localterminal=nvterm.new"float"localid=terminal.job_id-- The previous id was not always right for some reason so I made a fallback, -- as you can only have one floating terminalfor_, terminpairs(nvterm.list_terms()) doifterm.type=="float" thenid=term.job_idendendifvim.api.nvim_buf_is_valid(id) thenvim.api.nvim_chan_send(id, "lazygit && exit\n")
endend,
"Open Lazygit",
},
Loving nvterm. I have mapped a binding to use .send to run lazygit in a new term. Is there a way to assign focus to the term when using .send? I noticed auto-focus works when using .toggle or .new, but not .send.
The text was updated successfully, but these errors were encountered: