Using FZF from neovim #4666
pattydaone
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying recently to use fzf "as is" in neovim. That is, with this repo and not fzf.vim or fzf.lua. The readme file seems to imply that it works in neovim. But I'm encountering a severe problem. Fzf doesn't seem to be receiving the funcref I set in
g:fzf_actionwhich causes it to error. The current state of my config looks something like:Whenever I attempt to use the L command and 'enter', I'm met with
Vim(call):E718: Funcref required. I'm supposing that the plugin isn't receiving the function reference somehow ? I don't know. I do know, however, that setting the variable in this way is ok. Just above, withvim.g.fzf_colors, I set the variable using this lua syntax and fzf interprets it same as it would vimscript.I would like to note, I started on vim, and configured it in vimscript, which definitely works. The very first thing I did was copy-paste my vimscript into a
vim.cmd([[]])call; it doesn't work from there either. I also tried it with a completely untouchedinit.luafile except for the fzf configuration, no good. On the other hand, following neovims provided "from vim to neovim" setup instructions, everything works as it should.Other things I tried include defining the function in lua and giving
fzf_actiona reference to the lua function, and moving myChangeCWDfunction to a separate .vim file and sourcing it into my init.lua. Again, no good.Another note is that everything else works as expected with fzf. If I set sink to 'e' or 'tabe' it works fine.
I'm kind of at a loss for what the problem is. I know that I could just use fzf.lua, and I very well might, but I'd really like to know why this isn't working. If anyone has any ideas, that'd be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions