Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The terminal ignores TermOpen autocmd #71

Open
lluar opened this issue Jun 16, 2021 · 2 comments
Open

The terminal ignores TermOpen autocmd #71

lluar opened this issue Jun 16, 2021 · 2 comments

Comments

@lluar
Copy link

lluar commented Jun 16, 2021

When I run a task then the terminal running in a new tab ignores my autocmd for TermOpen.

vim.cmd "autocmd TermOpen term://* startinsert"

The Terminal is always in normal mode.

@MaiLunJiye
Copy link

MaiLunJiye commented Apr 27, 2023

So do I.

Reproduce :

init.lua

vim.cmd("autocmd TermOpen * startinsert")

task.ini

[git-lazygit]
command=lazygit
cwd=$(VIM_CWD)
output=terminal
pos=tab
close=1

Result: use :terminal will open a terminal buffer and switch to insert mode.
However, use AsyncTask open a terminal buffer, it will stay in normal mode.

@skywind3000
Copy link
Owner

skywind3000 commented Apr 27, 2023

what about use asyncrun:

:AsyncRun -mode=term -pos=tab lazygit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants