Strong defaults and new pickers for fzf-lua.
showcase.mp4
- wrapper for all fzf-lua's builtin pickers (support visual selection support, and accept the same options)
- new pickers
- recent files (
vim.v.oldfiles
+ recent closed files) lazy.nvim
(preview in fzf-lua, chdir, open in browser)- zoxide integration for
chdir
actions - notes/dotfiles management
- runtimepath, scriptnames, gitignore, license
- recent files (
https://github.com/phanen/.dotfiles/blob/master/.config/nvim/lua/pack/fzf.lua
local fl = setmetatable({}, {
__index = function(_, k)
return ([[<cmd>lua require('flo').%s()<cr>]]):format(k)
end,
})
return {
{
'phanen/fzf-lua-overlay',
main = 'flo',
cond = not vim.g.vscode,
init = function() require('flo').init() end,
-- stylua: ignore
keys = {
-- try new pickers
{ '+<c-f>', fl.lazy, mode = { 'n', 'x' } },
{ '+e', fl.grep_notes, mode = { 'n' } },
{ "+fi", fl.gitignore, mode = { 'n', 'x' } },
{ "+fl", fl.license, mode = { 'n', 'x' } },
{ '+fr', fl.rtp, mode = { 'n', 'x' } },
{ '+fs', fl.scriptnames, mode = { 'n', 'x' } },
{ '<leader><c-f>', fl.zoxide, mode = { 'n', 'x' } },
{ '<leader><c-j>', fl.todo_comment, mode = { 'n', 'x' } },
{ '<leader>e', fl.find_notes, mode = { 'n', 'x' } },
{ '<leader>fo', fl.recentfiles, mode = { 'n', 'x' } },
{ '<leader>l', fl.find_dots, mode = { 'n', 'x' } },
{ '+l', fl.grep_dots, mode = { 'n', 'x' } },
-- all fzf-lua's builtin pickers work transparently with visual mode support
{ '<c-b>', fl.buffers, mode = { 'n', 'x' } },
{ '<c-l>', fl.files, mode = { 'n', 'x' } },
{ '<c-n>', fl.live_grep_native, mode = { 'n', 'x' } },
},
opts = {},
},
-- config fzf-lua still work well
{ 'ibhagwan/fzf-lua', cmd = { 'FzfLua' }, opts = {} },
}
- https://github.com/ibhagwan/fzf-lua
- https://github.com/kilavila/nvim-gitignore
- https://github.com/roginfarrer/fzf-lua-lazy.nvim
- inject new pickers into fzflua builtin
- boardcast/pull session from other neovim instance by some what actions?
- integration with dirstack.nvim