jedrzejboczar / toggletasks.nvim

Neovim task runner: JSON/YAML + toggleterm.nvim + telescope.nvim
MIT License
157 stars 3 forks source link

ToggleTerm is opened in insert mode #18

Open Zeioth opened 1 year ago

Zeioth commented 1 year ago

This makes us having to press 'i' before 'q' every time we want to exit. There is some way to avoid this?

jedrzejboczar commented 1 year ago

You should be able to change the behavior by using start_in_insert = false for your toggleterm.nvim config (not toggletasks). But then it looks like you will end up in whatever mode you were in telescope, so selecting the task in normal leaves me in normal mode, and selecting in insert mode leaves me in insert mode. If that's not ok than we could add some option for toggletasks to always set insert/normal mode as desired by the user.

Also, which version of neovim are you using, as it may be somehow related to https://github.com/nvim-telescope/telescope.nvim/issues/2501.