nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.36k stars 45 forks source link

FZF syntax isn't working #54

Closed seliverstov-maxim closed 2 years ago

seliverstov-maxim commented 2 years ago

Hi, it seems that the syntax isn't working in my bundle.

nvim -v
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local

Features: +acl +iconv +tui

init.vim

call plug#begin(stdpath('data') . '/plugged')
  Plug 'nvim-lua/popup.nvim'
  Plug 'nvim-lua/plenary.nvim'

  " staff for telescope
  Plug 'nvim-telescope/telescope.nvim'
  Plug 'nvim-telescope/telescope-fzy-native.nvim'
  Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' }

  Plug 'sheerun/vim-polyglot' "Highlighting
  Plug 'mhinz/vim-startify' "Start screen
  Plug 'preservim/nerdtree' "NERDTree
call plug#end()

lua require("custom")

lua/custom/init.lua

local actions = require("telescope.actions")
local previewers = require("telescope.previewers")

require("telescope").setup({
  defaults = {
    file_sorter = require("telescope.sorters").get_fzy_sorter,
    mappings = {
      i = {
        ["<C-j>"] = actions.move_selection_next,
        ["<C-k>"] = actions.move_selection_previous,
      }
    }
  },
  extensions = {
    fzf = {
      fuzzy = false,
      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"
    }
  },
})

require('telescope').load_extension('fzf')

image image

I expect that 'tmp query returns any result

seliverstov-maxim commented 2 years ago

What's going wrong? May be I do something wrong?

Conni2461 commented 2 years ago

This is probably configured wrong.

Maybe not set

    file_sorter = require("telescope.sorters").get_fzy_sorter,

in telescope setup?

Conni2461 commented 2 years ago

And i hope you arn't loading fzy-native after require('telescope').load_extension('fzf'). Its fine to install it with Plug as long as you dont load it

seliverstov-maxim commented 2 years ago

thank you