daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Flatpak version does not load user configuration files #106

Closed sebastien closed 6 years ago

sebastien commented 6 years ago

At the moment neither ~/.config/nvim/ginit.vim, ~/.config/nvim/init.vim or ~/.config/nvim-gtk/ginit.vim, ~/.config/nvim-gtk/init.vim load using the latest Flatpak install (af8423f004bc5395a7c0b81844164317b4b490a7cac1a62dcc31c12b17ef4931) on Fedora 28.

Is there any way I can get the path of the configuration file used by nvim-gtk?

daa84 commented 6 years ago

It's on flatpak specific directory ~/.var/app/org.daa.NeovimGtk/config/nvim/ Think echo $MYVIMRC give it, not sure

sebastien commented 6 years ago

Thanks, but no it's actually not define echo $MYVIMRC in Vim yields nothing. Would you be open to update NeovimGtk so that it looks into $HOME/.config/nvim/init.vim for configuration first?

daa84 commented 6 years ago

This path is standard of flatpak and passed to application via XDG_CONFIG_HOME by flatpak. So application nvim-gtk and nvim uses XDG_CONFIG_HOME variable.

sebastien commented 6 years ago

OK, makes sense, thanks!