glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.68k stars 144 forks source link

Your plugin manager did not load the Firenvim plugin for neovim #1488

Closed niekas closed 1 year ago

niekas commented 1 year ago

What I tried to do

Tried to install Firenvim using Packr and nvim=v0.8.2, it was installed, but it does not work. Tried to troubleshoot and got an error. The $XDG_DATA_HOME is set to /, but /home/niekas/.local/share/firenvim/firenvim file exists.

What happened

echo 'abcde{}' | /home/niekas/.local/share/firenvim/firenvim
f{"messages": ["Your plugin manager did not load the Firenvim plugin for neovim."], "version": "0.0.0"}Firenvim not in runtime path. &rtp=/home/niekas/.config/nvim,/etc/xdg/xdg-ubuntu/nvim,/etc/xdg/nvim,/home/niekas/.local/share/nvim/site,/home/niekas/.local/share/nvim/site/pack/*/start/*,/usr/share/ubuntu/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/var/lib/snapd/desktop/nvim/site,/usr/share/nvim/runtime,/usr/share/nvim/runtime/pack/dist/opt/matchit,/lib/nvim,/var/lib/snapd/desktop/nvim/site/after,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/usr/share/ubuntu/nvim/site/after,/home/niekas/.local/share/nvim/site/after,/etc/xdg/nvim/after,/etc/xdg/xdg-ubuntu/nvim/after,/home/niekas/.config/nvim/after
glacambre commented 1 year ago

The $XDG_DATA_HOME is set to /

What does this mean? Is this something you've configured on your machine or something you think firenvim computes wrong?

niekas commented 1 year ago

The $XDG_DATA_HOME is set to /

What does this mean? Is this something you've configured on your machine or something you think firenvim computes wrong?

I did nothing custom. I have found this value in the Firenvim Troubleshooting guide and simply outputed its value.

I have opened this issue because the Troubleshooting guide says to do so.

If it doesn't, please open a new github issue.

glacambre commented 1 year ago

What happens if you:

Do you get the same error message when running echo 'abcde{}' | /home/niekas/.local/share/firenvim/firenvim?

albertas commented 1 year ago

Yup, I get the same error message after executing your steps:

echo 'abcde{}' | /home/niekas/.local/share/firenvim/firenvim
f{"messages": ["Your plugin manager did not load the Firenvim plugin for neovim."], "version": "0.0.0"}Firenvim not in runtime path. &rtp=/home/niekas/.config/nvim,/etc/xdg/xdg-ubuntu/nvim,/etc/xdg/nvim,/home/niekas/.local/share/nvim/site,/home/niekas/.local/share/nvim/site/pack/*/start/*,/usr/share/ubuntu/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/var/lib/snapd/desktop/nvim/site,/usr/share/nvim/runtime,/usr/share/nvim/runtime/pack/dist/opt/matchit,/lib/nvim,/var/lib/snapd/desktop/nvim/site/after,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/usr/share/ubuntu/nvim/site/after,/home/niekas/.local/share/nvim/site/after,/etc/xdg/nvim/after,/etc/xdg/xdg-ubuntu/nvim/after,/home/niekas/.config/nvim/after
albertas commented 1 year ago

I am using LunarVim, the Firenvim plugin was installed using this command in lvim/config.lua:

lvim.plugins = {
    { "glacambre/firenvim",
        run = function() vim.fn['firenvim#install'](0) end
    }
}
glacambre commented 1 year ago

Sorry, but lunarvim is not supported. I recommend you ask the lunarvim maintainers for help.

niekas commented 1 year ago

But the LunarVim is just a Lua layer on top of Neovim :thinking:

glacambre commented 1 year ago

No, it's not, otherwise your installation would work out of the box (and so would https://github.com/glacambre/firenvim/issues/1486 ) :). The fact that it requires its own installation steps, its own executable wrappers, plugin manager and possibly other complications I don't know of make it much more complicated to support than a regular plugin.