-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin clobbers the path variable, breaking fuzzy finding #54
Comments
Seems like @LemonBoy added this behavior. I want to ask them what their intention was before thinking about removing it |
I only added some more error checking around that logic, I guess whoever added that wanted |
@SamTebbs33 Did you try swapping, ie to write in let &l:path= &l:path . ',' . json_decode(s:env)['std_dir'] Vim/Neovim should then first look in the current path. |
For anyone else impacted by this, you can fix it by altering line 47 in Change it from: let &l:path = g:zig_std_dir . ',' . &l:path To: let &l:path = &l:path . ',' . g:zig_std_dir |
I think this should be closed, since the issue author gave no feedback, if the suggested solution worked or clarify why not. |
After opening a .zig file, line 40 of fplugin/zig.vim clobbers the path variable causing the vim fuzzy finder (:find) to start looking in the std lib directory instead of the cwd.
The text was updated successfully, but these errors were encountered: