numToStr / Navigator.nvim

:sparkles: Smoothly navigate between neovim and terminal multiplexer(s) :sparkles:
MIT License
391 stars 21 forks source link

The plugin fails to work inside the command line window. #15

Closed dcordb closed 2 years ago

dcordb commented 2 years ago

If we open a command line window (q:) and then try to move out of it by using one of the defined shortcuts (in my case <M-k> which goes to the window at the top) this fails.

The problem seems to be here:

https://github.com/numToStr/Navigator.nvim/blob/0c57f67a34eff7fd20785861926b7fe6bd76e2c2/lua/Navigator/navigate.lua#L19

Since wincmd does not work inside the command line window.

dcordb commented 2 years ago

Oh nevermind, now by reading the documentation I notice that there is really nothing to fix. Just there are other ways to exit this command-line window, like :quit or ctrl-c.