return function(opts)
  local default = {
    previewer = {
      cmd = 'eza --color=always --tree --level=3 --icons=always',
      _ctor = require('fzf-lua.previewer').fzf.cmd,
    },
    _fmt = { from = function(e, _) return vim.fn.expand(e) end },
    actions = {
      ---TODO: this is annoying
      ---@param sel string[]
      ['enter'] = function(sel) require('fzf-lua-extra.utils').zoxide_chdir(sel[1]) end,
      ---@param sel string[]
      ['ctrl-l'] = function(sel) require('fzf-lua').files { cwd = sel[1] } end,
      ---@param sel string[]
      ['ctrl-n'] = function(sel) require('fzf-lua').live_grep_native { cwd = sel[1] } end,
    },
  }
  opts = vim.tbl_deep_extend('force', default, opts or {})
  local clear = FzfLua.utils.ansi_escseq.clear
  local clear_pat = vim.pesc(clear)
  local contents = vim
    .iter(vim.api.nvim_list_runtime_paths())
    :map(require('fzf-lua-extra.utils').replace_with_envname)
    :map(
      ---@param path string
      ---@return string
      function(path) -- hack...
        local cleared = (path:gsub(clear_pat, ''))
        return cleared and cleared .. clear or path
      end
    )
    :totable()

  return require('fzf-lua.core').fzf_exec(contents, opts)
end
