nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.35k stars 46 forks source link

Problem in cmake building script, causing "'fzf' extension doesn't exist or isn't ins talled" #115

Closed ye-junzhe closed 8 months ago

ye-junzhe commented 8 months ago

I have encountered a problem with building this plugin using the default cmake build script(lazy.nvim)

{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }

image

Which leads to a problem that this line below won't work

telescope.load_extension("fzf")

image

But fixed it after I change the last bit of the script to be cd build && make

{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cd build && make' },

image

Env

Conni2461 commented 7 months ago

yeah the last install step is not needed, at least on linux, i dont know if its needed on windows :thinking:

the person who wrote the docs was writing it with that in mind