kdheepak / lazygit.nvim

Plugin for calling lazygit from within neovim.
MIT License
1.47k stars 53 forks source link

lazygit doesn't launch inside nvim on a git worktree #89

Closed sathishmanohar closed 1 year ago

sathishmanohar commented 1 year ago

Description

I recently switched to the git worktree workflow to be able to work with multiple git branches at the same time. lazygit inside termnial just opens fine in the worktree folder but lazygit doesn't open inside nvim.

To Reproduce

Open a worktree in nvim and launch lazygit. (bare repository workflow - https://www.youtube.com/watch?v=2uEqYw-N8uE )

  1. Clone a bare repo like in https://www.youtube.com/watch?v=2uEqYw-N8uE
  2. Add a git worktree
  3. navigate to the worktree
  4. open nvim
  5. Launch lazygit from inside nvim

Expected behavior

Lazygit should open like in terminal

Screenshots

image

Desktop (please complete the following information):

thefux commented 1 year ago

hey, I'm not sure if u figured out what is the issue .. but for me it looks like u have something wrong while configuring worktree. the path **/.git/.git looks suspect. I use this plugin quite often (with worktrees) but never have this issue.

sathishmanohar commented 1 year ago

Strange. It is working as expected now. Closing the issue.