Skip to content

[Bug] nvim-remote not working on Windows 11 #3467

@pidgeon777

Description

@pidgeon777

Describe the bug
When opening Lazygit inside Neovim and trying to edit a file with e, Lazygit hangs.

To Reproduce
Steps to reproduce the behavior:

  1. Start Lazygit in Neovim.
  2. Select a file in the Lazygit files list.
  3. Press e.

As a result, the Lazygit terminal will hang.

Expected behavior

After running the e command, I would expect Lazygit to close and Neovim to open a new tab with the corresponding file to be edited.

Version info:
lazygit --version:

commit=3675570a391b1a49ddd198b4c7e71e17701d4404, build date=2024-03-23T09:09:11Z, build source=binaryRelease, version=0.41.0, os=windows, arch=amd64, git version=2.44.0.windows.1

git --version:

git version 2.44.0.windows.1

Additional context
The problem could be related to this code:

https://github.com/jesseduffield/lazygit/blob/master/pkg/config/editor_presets.go#L54-L61

It seems a command to be run in a Linux environment.

So, I suppose there would have to be a Windows equivalent command. Also, how and where should the NVIM variable be set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions