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
This issue is related to windows. I am currently running Windows 11 23H2.
In our company the environment variables %HOMEDRIVE% and %HOMEPATH% do not point to C:\Users\username, but to a network share. This only happens if the notebook is started within the company. If it is started without connection to the company network those variables point to the "normal" location C:\Users\username.
If I now open neovim inside a directory within C:\Users\username, I can use the file browser and also telescope in general to navigate around in files within this directory or below. This is as expected.
However, if I use the filebrowser plugin to navigate up one level and search for files there (e.g. for reference), it tries to open the file with a full path. But the beginning of said path is not C:\Users\username anymore, but whatever is provided by %HOMEDRIVE%%HOMEPATH%. But the file does not exist there and an empty buffer is opened.
Why is this happening? And how could I solve it within neovim?
I made a test and manually set the two environment variables in the terminal prior to opening neovim. In this situation it is working as expected. But I would prefer to have a neovim solution instead of messing around with the environment variables, which could have unintended side effects.
Description
This issue is related to windows. I am currently running Windows 11 23H2.
In our company the environment variables
%HOMEDRIVE%
and%HOMEPATH%
do not point toC:\Users\username
, but to a network share. This only happens if the notebook is started within the company. If it is started without connection to the company network those variables point to the "normal" locationC:\Users\username
.If I now open neovim inside a directory within
C:\Users\username
, I can use the file browser and also telescope in general to navigate around in files within this directory or below. This is as expected.However, if I use the filebrowser plugin to navigate up one level and search for files there (e.g. for reference), it tries to open the file with a full path. But the beginning of said path is not
C:\Users\username
anymore, but whatever is provided by%HOMEDRIVE%%HOMEPATH%
. But the file does not exist there and an empty buffer is opened.Why is this happening? And how could I solve it within neovim?
I made a test and manually set the two environment variables in the terminal prior to opening neovim. In this situation it is working as expected. But I would prefer to have a neovim solution instead of messing around with the environment variables, which could have unintended side effects.
Neovim version
Operating system and version
Windows 11 23H2
Steps to reproduce
%HOMEDRIVE%
and%HOMEPATH%
not point toC:\Users\username
C:\Users\username
, e.g.C:\Users\username\Documents\projectA
C:\Users\username\Documents\projectB\README.md
Expected behavior
The file should be opened
Actual behavior
The file is tried to be loaded from
%HOMEDRIVE%%HOMEPATH\Documents\projectB\README.md
, which does not exist.Minimal config
The text was updated successfully, but these errors were encountered: