You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generally have the PWD of VIM set to src/ for python linting and thats the dir the project starts up in.
When I review a file say in the config/ dir, and try to stage hunk it with Neogit, it shows an error message (image below). One can stage the whole file succesfully though, just not the hunk
Neovim version
NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az190-151
Operating system and version
Ubuntu 22.04
Steps to reproduce
Open a git project
make a change in a file higher up in the project structure
CD into a lower dir
Try stage the file in the higher up dir.
Expected behavior
The hunk to be staged
Actual behavior
The following error message:
The file is actually ../README.md, and not src/../README.md. Which it gets right if one stages the whole file.
This is happening for me on MacOS in a monorepo setup as well. My workaround is to stage individual hunks directly from the buffer using the git-signs plugin.
Description
I have a project structure that looks like this (these dirs all exist in the git project):
I generally have the
PWD
of VIM set tosrc/
for python linting and thats the dir the project starts up in.When I review a file say in the
config/
dir, and try to stage hunk it with Neogit, it shows an error message (image below). One can stage the whole file succesfully though, just not the hunkNeovim version
NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az190-151
Operating system and version
Ubuntu 22.04
Steps to reproduce
Expected behavior
The hunk to be staged
Actual behavior
The following error message:
The file is actually
../README.md
, and notsrc/../README.md
. Which it gets right if one stages the whole file.Minimal config
The text was updated successfully, but these errors were encountered: