camspiers / snap

A fast finder system for neovim.
The Unlicense
483 stars 16 forks source link

Fuzzy filtering doesn't work #86

Closed deanishe closed 11 months ago

deanishe commented 1 year ago

This plugin looks like exactly what I'm after. Hope I can get it working…

I've installed Snap, and it opens windows okay, but it doesn't filter the results against my search query:

image

As I understand it, there should be no results because nothing matches the query I've entered: "filter". The results list, once loaded, does not change when the query changes.

Here's a minimal init.lua that still exhibits the issue (on my machine). I copy-pasted the Snaps from the README:

require('packer').startup(function(use)
    use { 'wbthomason/packer.nvim' }
    use { 'camspiers/snap' }
end)

vim.g.mapleader = " "

local snap = require'snap'
snap.maps {
  {"<Leader><Leader>", snap.config.file {producer = "ripgrep.file"}},
  {"<Leader>fb", snap.config.file {producer = "vim.buffer"}},
  {"<Leader>fo", snap.config.file {producer = "vim.oldfile"}},
  {"<Leader>ff", snap.config.vimgrep {}},
}

My neovim version is:

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.0/share/nvim"

Run :checkhealth for more info

Is there any other info I can provide? I'm afraid I don't know really how to debug Neovim plugins.

nashio commented 1 year ago

Same issue, could it be related to the version of neovim?, I'm also using 8

kenranunderscore commented 1 year ago

Same here, on the development version of neovim.