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('fzf-lua-overlay').%s()<cr>]]):format(k)
end,
})
return {
{
'phanen/fzf-lua-overlay',
cond = not vim.g.vscode,
init = function() require('fzf-lua-overlay').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