scalameta / nvim-metals

A Metals plugin for Neovim
https://scalameta.org/metals/
Apache License 2.0
455 stars 74 forks source link

When you toggle logs you're in insert mode #643

Open ckipp01 opened 5 months ago

ckipp01 commented 5 months ago

Describe the bug

Somewhere this changed, but it used to be that when you toggled the logs you'd be tailing them in term, but not be in "terminal" mode. Now you are and you have to exit out.

Expected behavior

I'd expect to not be put in terminal mode.

Operating system

macOS

Version of Metals

1.2.0+103-2a275a5a-SNAPSHOT

Commit of nvim-metals

latest

ckipp01 commented 4 months ago

Note that in nightly this isn't an issue, so there is something funky going on with the latest stable version of Nvim that is impacting this. I'll leave this open until the next release, but there isn't anything I'll likely change in nvim-metals about this.

ghostbuster91 commented 3 months ago

This also happens on linux. The only way for me to get out of the logs buffer is to hit ctrl+c which would kill the tail -f process and close the buffer. All other keys are intercepted by the buffer.