imxiejie / ThinkVim

Vim configuration in the 21st century
MIT License
868 stars 106 forks source link

:FZF not working #14

Closed emeentag closed 5 years ago

emeentag commented 5 years ago

Problems summary

:FZF or <SPC> ff giving the error below.

Error detected while processing function Fzf_dev[25]..fzf#run[64]..<SNR>93_execute_term[3]..<SNR>93_split[9]..FloatingFZF: line 1: E117: Unknown function: nvim_create_buf E15: Invalid expression: nvim_create_buf(v:false, v:true) Press ENTER or type command to continue

Environment Information

How to reproduce the problem from neovim startup (Required!)

  1. Open a java file
  2. Type :FZF or <SPC> ff
  3. Error

Screenshot (if possible)

Screen Shot 2019-06-14 at 13 37 47

glepnir commented 5 years ago

@emeentag the neovim must > = 0.4.0 . brew install --HEAD neovim or https://github.com/neovim/neovim/releases/

emeentag commented 5 years ago

@taigacute thx for the quick reply. Wen i try to instal that one i am getting errors and it stops to install.


   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
   used as include directory in directory /tmp/neovim-20190614-27197-12fe110/runtime
LIBLUV_LIBRARY (ADVANCED)
    linked by target "libnvim" in directory /tmp/neovim-20190614-27197-12fe110/src/nvim
    linked by target "nvim-test" in directory /tmp/neovim-20190614-27197-12fe110/src/nvim
    linked by target "nvim" in directory /tmp/neovim-20190614-27197-12fe110/src/nvim

-- Configuring incomplete, errors occurred!
See also "/tmp/neovim-20190614-27197-12fe110/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/neovim-20190614-27197-12fe110/build/CMakeFiles/CMakeError.log".

READ THIS: https://docs.brew.sh/Troubleshooting```
glepnir commented 5 years ago

@emeentag you should install cmake and some depends package . https://github.com/neovim/neovim/wiki/Installing-Neovim

the easy way you can download the Asserts, and set the neovim/bin into your$PATH casue the floatwindow is a feature of neovim 0.4.0 above. 0.3.7 doesnt support floatwindow.

emeentag commented 5 years ago

Thx @taigacute i solved the problem by downloading the nightly release from github:

Steps:

  1. Goto: https://github.com/neovim/neovim/releases
  2. Select the version which is greater than >= 0.4.0
  3. Put it to one of your usr directory.
  4. Create an alias for nvim to the path wher you save the nvim bin folder. i.e~/nvim-osx64/bin/nvim

Thanks.

glepnir commented 5 years ago

@emeentag this is my way export PATH="/Users/pendragon/neovim/bin:$PATH"