Skip to content

fzf-lua Extra

editor.fzf-lua installs fzf-lua and switches Blak’s picker dispatcher to the fzf-lua adapter. The Blak commands and <leader>f* mappings stay stable.

Enable it

-- ~/.config/blak/lua/blak/user.lua
return {
extras = {
enabled = {
"editor.fzf-lua",
},
},
}

Because this extra adds a plugin, run:

:BlakExtras sync

What it adds

SurfaceContribution
Pluginibhagwan/fzf-lua
Dependencymini.icons
Configpicker.provider = "fzf_lua"

Configure the provider

The extra sets the provider for you. Keeping the value in user.lua can make the intended picker obvious:

return {
picker = {
provider = "fzf_lua",
},
extras = {
enabled = { "editor.fzf-lua" },
},
}

Picker coverage

fzf-lua handles:

Blak kindfzf-lua call
filesfiles
greplive_grep
buffersbuffers
recentoldfiles
commandscommands
keymapskeymaps
helphelp_tags
diagnosticsdiagnostics_workspace
lsp_symbolslsp_document_symbols
workspace_symbolslsp_workspace_symbols

Blak does not expose an fzf-lua options table in user.lua. For deep fzf-lua customization, create a local extra with your own fzf-lua spec.

Switch back

return {
picker = {
provider = "fff",
},
extras = {
enabled = {},
},
}

Then run :BlakExtras sync so lazy.nvim removes fzf-lua if nothing else uses it.