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
Wrong path scheme on windows #1411
Comments
Are you running the latest version of the main repo? Is this patch included in your copy? |
Strange. Why https://github.com/junegunn/fzf/commits/master What does |
Then you have the latest version. A few questions:
|
in init.vim |
Can you try applying this patch to the main fzf repo and see if it helps? diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 6fada6c..4dd7ece 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -164,7 +164,7 @@ function s:get_version(bin)
if has_key(s:versions, a:bin)
return s:versions[a:bin]
end
- let command = (&shell == 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
+ let command = (&shell =~ 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
let output = systemlist(command)
if v:shell_error || empty(output)
return '' |
Yep - it done the trick. Have a 🍺 :) |
Thanks for the confirmation, I've pushed to fix to master. |
man fzf
)I have recently got back on Windows, fired PlugInstall and all of the sudden I cannot run fzf anymore. Seems like plugin uses slashes in path instead of backslashes.
Running neovim 0.7.2 on Windows 11.
The text was updated successfully, but these errors were encountered: