nvim-telescope / telescope-fzf-native.nvim

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

Can't check is it working #86

Closed lumpsoid closed 1 year ago

lumpsoid commented 1 year ago

I am confused by the way the sorter works this is my custom picker: screenshot_20221019105036

when I use original fzf plugin for vim I see this: screenshot_20221019104850

but when I try to use my custom picker in same search I see that result: screenshot_20221019104924

and also this result is weird: screenshot_20221019105001 screenshot_20221019105007

and I can't checkhealth, but I saw that you implement this screenshot_20221019104938 in my .config/nvim/plugin/telescope-setup.lua I have that configuration

-- You dont need to set any of these options. These are the default ones. Only
-- the loading is important
require('telescope').setup {
  extensions = {
    fzf = {
      fuzzy = true,                    -- false will only do exact matching
      override_generic_sorter = true,  -- override the generic sorter
      override_file_sorter = true,     -- override the file sorter
      case_mode = "smart_case",        -- or "ignore_case" or "respect_case"
                                       -- the default case_mode is "smart_case"
    }
  }
}
-- To get fzf loaded and working with telescope, you need to call
-- load_extension, somewhere after setup function:
require('telescope').load_extension('fzf')

and this code in packer plugin:

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

NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3

lumpsoid commented 1 year ago

but for :Telescope oldfiles fuzzy search works

lumpsoid commented 1 year ago

okey, this is a problem with live_grep picker this picker is not compatible with this sorter

lumpsoid commented 1 year ago

and I find, how it's working – https://github.com/nvim-telescope/telescope.nvim/issues/564#issuecomment-786850776 and how you can make workaround with grep_string picker

Conni2461 commented 1 year ago

Its not an issue, its intended behavior of live grep where each prompt goes directly to ripgrep, giving you regex support and more.

We maybe can document this better whatever this is

Search for a string and get results live as you type, respects .gitignore

Also also the "workaround" is exactly what the :Rg implementation does

But hey if you wanna help me improve the getting started with this plugin, i would greatly appreciate anyone testing this PR https://github.com/nvim-telescope/telescope-fzf-native.nvim/pull/84 It should then give feedback if everything works by running checkhealth telescope

lumpsoid commented 1 year ago

basically, I need to checkout to this branch and run the code, and write a feedback, right?

Conni2461 commented 1 year ago

Yeah, checkout this branch, and run :checkhealth telescope it should then give feedback in the fzf-native section if all checks passed.

Thanks would really appreciate anyone testing this new feature :)