is0n / fm-nvim

🗂 Neovim plugin that lets you use your favorite terminal file managers (and fuzzy finders) from within Neovim.
GNU General Public License v3.0
272 stars 18 forks source link

Joshuto does not work #30

Open alvaro17f opened 2 years ago

alvaro17f commented 2 years ago

Hi, big fan of your plugin here.

I found that Joshuto is not working properly. Seems like the --choosefiles subcommand it's been deprecated and substituted.

Thanks for such a useful plugin.

richardhttps commented 2 years ago

I can confirm it isn't working

JohanChane commented 1 year ago

https://github.com/is0n/fm-nvim/pull/37

Artexxx commented 1 year ago

I fixed the problem like this:

Desktop_230808_2135

In ~.local/share/nvim/lazy/fm-nvim/lua/fm-nvim.lua

function M.Joshuto(dir)
    dir = dir or "."
    if config.ui.default == "float" then
        createWin(config.cmds.joshuto_cmd .. " --choosefiles /tmp/fm-nvim --path " .. dir, "l")
    elseif config.ui.default == "split" then
        createSplit(config.cmds.joshuto_cmd .. " --choosefiles /tmp/fm-nvim --path " .. dir, "l")
    end
end