-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug exiting lazyGit #78
Comments
I'm not sure if my issue is related or not, but I can't exit out of LazyGit anymore. Whether I hit
It seems there's some sort of exception at Line 29 in c7a8bfb
@paulhmurray do you see the same error? |
can't reproduce on my side, maybe clashes with some configuration or mapping from other plugin !? |
I was able to resolve the error. I use a This works though: " NOTE: added lazygit check to avoid lua error
" NOTE: added "silent!" to avoid error when FZF terminal window is closed.
autocmd TermClose * if &filetype != 'lazygit' && !v:event.status | silent! exe 'bdelete! '..expand('<abuf>') | endif |
I was able to reproduce the bug with ToggleTerm installed. Like @thefux said, it might be a conflict somewhere in the configs. |
See if you have the following keymap set somewhere (i.e. your toggleterm setup file). vim.keymap.set("t", "<esc>", [[<C-\><C-n>]], opts) from: https://github.com/akinsho/toggleterm.nvim#terminal-window-mappings |
The bug is still not fixed? |
Are you able to reproduce this bug with a minimal neovim setup? For example with a file like this: Lines 1 to 22 in de35012
I don't believe this is a bug in lazygit.nvim per say, just a configuration collision. In neovim's terminal mode, hitting |
I don't have any other Terminal Plugin like toggleTerm. But with following keymapping the plugin is not usable. After disabling this mapping it works also mapping like this is causing problems. So rebinding it does not help.
Is there a way to enable these mappings for non lazygit terminals or disable them for lazygit terminal windows? |
When lazygit.nvim opens a terminal it sets the buffer name to lazygit. You can use an autocmd to check for the buffer name on BufOpen and set whatever bindings you want conditionally. |
Describe the bug
Loading LazyGit with NeoVim plugin there is conflict when using Esc and then trying to exit LazyGit with 'q' command for quit
To Reproduce
Steps to reproduce the behavior:
Load LazyGit
Press Esc
Then try and leave LazyGit by pressing 'q' for quit won't work
Only way to exit is to use Vim's ":q"
Expected behavior
That exiting the floating LazyGit screen will work regardless of pressing the 'esc' button
Screenshots
Not much need for a screenshot, as the floating LazyGit window just hangs until I select ":q" for vim exit
Version info:
LazyGit Version 0.34
Git version 2.34.1
The text was updated successfully, but these errors were encountered: