liuchengxu / vim-clap

:clap: Modern performant fuzzy picker, tree-sitter highlighting, and more, for both Vim and NeoVim
https://liuchengxu.github.io/vim-clap/
MIT License
2.11k stars 86 forks source link

Can vim-clap be lenient with input order of words like fzf does? #651

Closed Congee closed 3 years ago

Congee commented 3 years ago

For example, in the screenshot below from fzf, it is possible to type "api" after "docs". Vim-clap requires me to type "docs" and "api", in that order, at least with default settings.

image So, is this feature supported?

liuchengxu commented 3 years ago

Try #652, you have to compile the Rust binary locally.

Congee commented 3 years ago

Woah, that's pretty a quick PR. I checked out #652, unfortunately it does not work yet.

liuchengxu commented 3 years ago

@Congee Forget to mention that you need to compile the Python dynamic module too and force using that as the pure Python substring matcher does not support this.

let g:clap_force_python = v:true

If it still doesn't work for you, please post the minimal vimrc and steps to reproduce.

Congee commented 3 years ago

Hi, I built against the latest commit with the following minimum nvimrc, and it still is not working for me.

call plug#begin(stdpath('data') . '/plugged')
Plug 'liuchengxu/vim-clap', { 'do': ':Clap install-binary' }
call plug#end()

let g:clap_force_python = v:true

" vim: ts=2 sw=2

I'm using: nvim 0.4.3 vim-clap @ 6ca4c58cd1d3e53486d62ad692375672412a19b3 built by cargo build --release

Am I missing anything :thinking: ?

liuchengxu commented 3 years ago

Can not reproduce with this vimrc, works well for me. cargo build --release does not build the Python dynamic module, just running make is fine.

Congee commented 3 years ago

make was what's missing. It works. Thank you!