-
-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Description
For the past 3 or 4 weeks, I've been experiencing a weird error when closing LazyGit with q
key binding. Even though the window close successfully, I receive a notification error saying that the window's ID is invalid.
I've tried to go further to reproduce, but I stopped at this line: https://github.com/kdheepak/lazygit.nvim/blob/main/lua/lazygit.lua#L28
Looks like that, for some reason, Lazygit is now being considered a valid window.
This is the log that I receive as a message:
...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:29: Invalid window id: 1017
stack traceback:
[C]: in function 'nvim_win_close'
...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:29: in function <...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:18>
I've tried to remove ~/.local/state/nvim
, /.local/share/nvim/.cache/nvim` to ensure nothing was lost there, but the problem persists.and
Also, I've tried to disable several modules that could be interfering, including test LazyGit with and without plenary.nvim.
This is my config: https://github.com/reesilva/Neve.git
Also, I would be happy to help with any more infos if needed, just let me know :D
To Reproduce
Here are the steps to reproduce:
- Launch Neovim
- Open Lazygit either with
:LazyGit
or with a key binding - Close Lazygit's window with
q
key binding
The window will close, but an error msg will be emitted.
Expected behavior
What is expected to happen:
Screenshots
Desktop (please complete the following information):
- nvim --version:
NVIM v0.11.2
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info