lazygit.nvim icon indicating copy to clipboard operation
lazygit.nvim copied to clipboard

`let g:lazygit_floating_window_use_plenary = 1` results in error when quitting

Open kohane27 opened this issue 1 year ago • 3 comments

Hello there. Hope you're doing well. Thank you for creating this amazing lazygit wrapper!

Description

I have plenary.nvim installed.

If I set let g:lazygit_floating_window_use_plenary = 1, whenever I quit the lazygit window, the following error is resulted:

...nvim/site/pack/packer/start/lazygit.nvim/lua/lazygit.lua:28: Expected Lua number
stack traceback:
^I[C]: in function 'nvim_win_close'
^I...nvim/site/pack/packer/start/lazygit.nvim/lua/lazygit.lua:28: in function <...nvim/site/pack/packer/start/lazygit.nvim/lua/lazygit.lua:17>
Press ENTER or type command to continue

2022-12-27-12-56-40

Setting it to 0 (i.e., let g:lazygit_floating_window_use_plenary = 0) and the error is gone.

Expected behavior

Quitting lazygit window cleanly and without errors.

System info

Neovim version:

NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui

OS: EndeavourOS Linux x86_64 Kernel: Linux 6.1.1-arch1-1

Thank you!

kohane27 avatar Dec 27 '22 05:12 kohane27