camspiers / snap

A fast finder system for neovim.
The Unlicense
490 stars 17 forks source link

how to do fuzzy grep? #79

Open ckoehler opened 3 years ago

ckoehler commented 3 years ago

This is close:

snap.run({
  producer = snap.get("producer.ripgrep.vimgrep"),
  steps = { {
    consumer = snap.get("consumer.fzy"),
    config = { prompt = "FZY>" },
  } },
  select = snap.get("select.vimgrep").select,
  multiselect = snap.get("select.vimgrep").multiselect,
  views = { snap.get("preview.vimgrep") },
})

Can this be done without the extra step? Just grep the whole project and fuzzy match lines?