Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvim-telescope/telescope-fzf-writer.nvim
Incorporating some fzf concepts with plenary jobs and telescope
https://github.com/nvim-telescope/telescope-fzf-writer.nvim
Last synced: about 1 month ago
JSON representation
Incorporating some fzf concepts with plenary jobs and telescope
- Host: GitHub
- URL: https://github.com/nvim-telescope/telescope-fzf-writer.nvim
- Owner: nvim-telescope
- Created: 2020-11-23T16:32:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-01T21:59:06.000Z (over 3 years ago)
- Last Synced: 2024-05-22T17:35:06.156Z (4 months ago)
- Language: Lua
- Size: 5.86 KB
- Stars: 73
- Watchers: 5
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`
- `require('telescope').extensions.fzf_writer.grep()`
- similar to `live_grep`, but more async-ish`fzf_writer.staged_grep`
- `require('telescope').extensions.fzf_writer.staged_grep()`
- similar to `live_grep`, but more async-ish and bonus feature.
- uses `rg` to filter exact match before `|` and afterwards uses `fzf` to fuzzy find over results.
- If you wish to configure this, it has configuration for:
- `fzf_separator`: default "|", the character to split between rg mode and fzf mode.`fzf_writer.files`
- `require('telescope').extensions.fzf_writer.files()`
- similar to `find_files`, but more async-ish## Configuration
```lua
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.