A vim.ui.select
implementation for the fzy CLI.
$PATH
.Plug 'mfussenegger/nvim-fzy'
use 'mfussenegger/nvim-fzy'
nvim-fzy
provides the vim.ui.select
implementation and a execute
function
to feed the output of commands to fzy
.
Create some mappings like this:
lua fzy = require('fzy')
nnoremap <silent><leader>ff :lua fzy.execute('fd', fzy.sinks.edit_file)<CR>
nnoremap <silent><leader>fg :lua fzy.execute('git ls-files', fzy.sinks.edit_file)<CR>
nnoremap <silent><leader>fl :lua fzy.execute('ag --nobreak --noheading .', fzy.sinks.edit_live_grep)<CR>
See :help fzy
for more information
To get additional pickers to jump to tags and other stuff, you can use it in combination with nvim-qwahl
Enjoy
new_pop
function if you want to customize the floating window.command
function if you want to customize the fzy
shell command.Take a look at the source to see the default implementations.
This plugin is pretty much done and won't see feature additions, unless there is a convincing case to be made.