Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment issue with $XDG_DATA_HOME/firenvim/firenvim #960

Closed
ppom0 opened this issue Feb 22, 2021 · 2 comments
Closed

Environment issue with $XDG_DATA_HOME/firenvim/firenvim #960

ppom0 opened this issue Feb 22, 2021 · 2 comments

Comments

@ppom0
Copy link

ppom0 commented Feb 22, 2021

Hi!
I have an issue setting up Firenvim on NixOS.
After some help on its forum, I have set XDG_DATA_HOME correctly.
But it appears that :

  • This command works fine (no output) : echo 'abcde{}' | eval < .local/share/firenvim/firenvim
  • This command doesn't : echo 'abcde{}' | .local/share/firenvim/firenvim
    Here's the relevant error :
E117: Unknown function: firenvim#run

I don't understand the difference between them. I think it's an environment issue.
Thanks for help!

  • OS Version: linux x86-64
  • Browser Version: Firefox 85.0
  • Browser Addon Version: 0.2.4
  • Neovim Plugin Version:
@glacambre
Copy link
Owner

Thanks for going through the troubleshooting steps, this is very useful. This error indicates that the Firenvim bash script was able to run Neovim but that Firenvim does not exist in Neovim's runtime path (= the neovim plugin isn't loaded).

The simplest way to fix this is to edit .local/share/firenvim/firenvim and add --cmd 'set rtp+=PATH/TO/GIT/CHECKOUT/OF/FIRENVIM' to the line that execs neovim, in order to force loading of the plugin. I'm surprised this is not working by default though - how did you install the neovim plugin?

@ppom0
Copy link
Author

ppom0 commented Feb 23, 2021

It indeed fixed the issue, many thanks!
My installation is standard (I think), I install plugins with vim-plug, the plugins are here ~/.config/nvim/plugged and the init script is here ~/.config/nvim/init.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants