nvim-telescope / telescope-fzf-writer.nvim

Incorporating some fzf concepts with plenary jobs and telescope
72 stars 7 forks source link

fzf_writer.nvim

Incorporating fzf into telescope using plenary's job writer functionality.

Requires

fzf and rg to both be installed.

More can be added later.

Exports

fzf_writer.grep

fzf_writer.staged_grep

fzf_writer.files

Configuration

require('telescope').setup {
    extensions = {
        fzf_writer = {
            minimum_grep_characters = 2,
            minimum_files_characters = 2,

            -- Disabled by default.
            -- Will probably slow down some aspects of the sorter, but can make color highlights.
            -- I will work on this more later.
            use_highlighter = true,
        }
    }
}

TODO

Could probably still make this more async by doing a better job with some of the matching strategy / filtering and maybe not using rg for files. Idk, it was just a thought so I made this.