Fork me on GitHub
#vim
<
2019-10-23
>
dominicm13:10:52

@dharrigan how is clap? How big of a project did you try it on? I've put fzf into windowed mode for now :)

dominicm13:10:12

Haven't tried clap in the bank yet, but ctrlp is driving me nuts

dharrigan13:10:00

I'm quite liking clap - seems to be quite responsive and although my clojure projects are small (personal stuff, utilities), it does work very fast (subjectively). I should try it on some of my bigger Kotlin projects and see

dharrigan13:10:42

So far, I've just got it enabled for grep (which uses ideas borrowed from fzf/rg), buffers, marks and files

dharrigan13:10:55

I have it mapped to leaders

dharrigan13:10:09

i.e., nmap <silent> <Leader>f :Clap files --hidden<CR>

dominicm13:10:39

I've never used this stuff for marks, I'm probably missing out

dharrigan13:10:50

FOMO? 🙂

Olical14:10:54

I've started centering my fzf + rg and I'm really liking it.

nate14:10:44

Is windowed mode just something you can enable with a config flag?

dominicm14:10:11

Yeah. It takes a command/function to open the window for fzf, so you can give it a function for the new nvim buffer stuff

nate14:10:11

(referring to the fzf plugin)

dharrigan14:10:19

try vim clap, does the centering etc.. for you

nate14:10:29

I've used CtrlP for a long time, pondering switching. Although I don't know if I could give up MRU mode.

nate14:10:28

I'll give vim clap a try.

nate16:10:46

thanks for sharing! going to try this out soon

Olical16:10:03

Definitely going to be giving clap a go though, looks great. Despite my love for fzf.

dominicm16:10:29

Fzf strikes the best balance of algorithm and performance for me. So far of things I've tried.

dominicm16:10:42

I even tried fzy which claims to have a better algorithm, but I think fzf improved it's algorithm since then.

walterl17:10:21

I've switched from CtrlP → fzf a few months ago. Not a massive difference, but fzf is a bit nicer. Seems easier to extend too.

walterl17:10:06

fzf also comes with more sources ("things to search") out of the box

dominicm18:10:36

Using ctrlp I miss being able to hit space to match an earlier part of the line

Olical21:10:36

https://github.com/liuchengxu/vim-clap/pull/86 opened a PR to clap to allow extra opts for ripgrep in :Clap grep. So I can enable searching hidden files and folders 😄 If you need it before the PR is merged, here's my fork: https://github.com/Olical/vim-clap/tree/opts-for-grep

Olical21:10:07

First impressions of clap have been pretty great though