I am switching from vim to neovim. According to https://github.com/junegunn/vim-plug.
For Unix/Linux
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/
resolves to ~/.local/share/nvim/site/autoload/
.
However when neovim start it does not load the vim-plug script from here.
I have tried to manually setting call plug#begin(~/.local/share/nvim/site/autoload/Plugged)
however, neovim does not seems to load from this folder.
I have also referred to this post on stackoverflow, however no luck.
Other link referred: Vim-plug error with neovim, Unkown function: plug#end NeoVim Plugin not getting installed. (Using vim-plug) Neovim - 'plugged' directory cannot be found