Curs3W4ll/Dotfiles

[BUG] Neovim Lua - Ctrl-N with git_status source not working

Closed this issue · 1 comments

Describe the bug
Pressing <C-N> key bind will show/hide the neo-tree window.
At least this is what it should do.

But instead, if you're using this key bind when on the git_status source, it will just open another neo-tree window.
So you end up with 2 neo-tree windows which take half of your screen.

To Reproduce
Steps to reproduce the behavior:

  1. Open Neovim
  2. Open neo-tree window if not already shown by pressing <C-n>
  3. Switch to the git_status source using h in the neo-tree window
  4. Focus on code again
  5. Press <C-n> again
  6. This will open a second neo-tree window

Expected behavior
Do not open a new window, just hide the existing one, no matter which source is selected

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 20.04

Not able to reproduced