Use fzf to browse files in vis.
Did not spent much time writing this plugin. Use at your own risk.
In vis:
:fzfbrowser
: list all files in the current working directory.
In visrc.lua:
plugin_vis_fzf_browser = require('plugins/vis-fzf-browser/fzf-browser')
-- Path to the fzf executable (default: 'echo "..\n$(ls -Ap)" | fzf')
plugin_vis_browser.fzf_browser_path = 'echo "..\n$(ls -p) | fzf'
-- Arguments passed to fzf (defaul: "")
plugin_vis_browser.fzf_browser_args = "--height 24%"
-- Mapping configuration example (<Space>e)
vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, " e", ":fzfbrowser<Enter>")
end)