Fold markers picker for fzf-lua.
Tip
Current functionalities of this plugin can be approximated using fzf-lua's
grep_curbuf or blines as discussed in
fzf-lua#2437. Consider using
those first if they meet your needs.
- NeoVim (tested with version 0.11.4)
- fzf-lua
Install this using your favorite package manager. For example using lazy.nvim:
{
"ibhagwan/fzf-lua",
dependencies = {
"neur1n/fzf-lua-foldmarkers",
},
},require("fzf-lua-foldmarkers").setup({
-- Optional. Will be called after jumping to a fold marker.
on_jump = function()
...
end,
})Example keybinding to invoke the fold markers picker:
{"<Leader>fm", "<Cmd>lua require('fzf-lua-foldmarkers').foldmarkers()<CR>", mode = "n", {noremap = true, silent = true}},