Closed ibhagwan closed 3 years ago
Should be fixed now? This was a regression, deleted a line of code I shouldn't have.
Yap, works now, I was just going to suggest that line was the problem :-)
Great!
@ibhagwan Could you please explain how to make nvim-fzf work in Windows (it seems you made it work)? Currently it displays errors:
E5108: Error executing lua ...ack\user\start\fzf-lua\lua\fzf-lua\providers\nvim.lua:290: ...a\nvim-data\site\pack\user\start\nvim-fzf\lua\fzf.lua:198: ...a\nvim-data\site\pack\user\start\nvim-fzf\lua\fzf.lua:22: bad argument #1 to 'func' (number expected, got nil)
BTW, this
https://github.com/vijaymarupudi/nvim-fzf/blob/679714e140ab9b5f26731c300ecbc9108d2c9fe1/lua/fzf.lua#L111
returns nil
(LibUV says it Returns: 0 or fail
).
Windows support is not complete, I need a tester to make it work, since I don't have a Windows computer. Please create a new issue if you're willing to help!
I need a tester to make it work
I'm all yours
@ibhagwan Could you please explain how to make nvim-fzf work in Windows (it seems you made it work)? Currently it displays errors:
E5108: Error executing lua ...ack\user\start\fzf-lua\lua\fzf-lua\providers\nvim.lua:290: ...a\nvim-data\site\pack\user\start\nvim-fzf\lua\fzf.lua:198: ...a\nvim-data\site\pack\user\start\nvim-fzf\lua\fzf.lua:22: bad argument #1 to 'func' (number expected, got nil)
BTW, this
returns
nil
(LibUV says itReturns: 0 or fail
).
@cpkio I do not have windows as well, the issue here is even if nvim-fzf supports windows this will take quite a bit of adjustments in fzf-lua since I did not program it with Windows in mind, for that we need someone willing to make a PR, there is no way I can add support for it “blind” without having windows.
I believe this was added in https://github.com/vijaymarupudi/nvim-fzf/commit/5934f3bcaff204940567d1becb0c9563fac075ca, the pipe feeding lines into fzf isn't closing properly resulting in a a never ending loading indicator with
sk
. For some reason this does not appear to affectfzf
, but even prior to this bugfzf
was stopping the loading indicator regardless if I calledcb(nil, fn)
inside the callback to signal EOF.This is how it looks like, look at the
<
right of the prompt