mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-28 05:54:03 +02:00
Modifying installer.sh (and README.md) to be suited for Gentoo (#495)
* Modifying installer.sh to be suited for Gentoo * Change README.md to be more helpful for Gentoo instalations
This commit is contained in:
parent
23cfaa7328
commit
c1600fbfaa
2 changed files with 30 additions and 1 deletions
|
@ -135,6 +135,7 @@ or if you are on Arch you can get it from the AUR
|
||||||
yay -S neovim-git
|
yay -S neovim-git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
if you are on Gentoo you have to emerge the 9999 neovim version with luajit as the lua single target
|
||||||
# Getting started
|
# Getting started
|
||||||
|
|
||||||
## Home screen
|
## Home screen
|
||||||
|
|
|
@ -30,6 +30,16 @@ installnodefedora() {
|
||||||
sudo dnf install -y npm
|
sudo dnf install -y npm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installnodegentoo() {
|
||||||
|
echo "Printing current node status..."
|
||||||
|
emerge -pqv net-libs/nodejs
|
||||||
|
echo "Make sure the npm USE flag is enabled for net-libs/nodejs"
|
||||||
|
echo "If it isn't enabled, would you like to enable it with flaggie? (Y/N)"
|
||||||
|
read answer
|
||||||
|
[ "$answer" != "${answer#[Yy]}" ] && sudo flaggie net-libs/nodejs +npm
|
||||||
|
sudo emerge -avnN net-libs/nodejs
|
||||||
|
}
|
||||||
|
|
||||||
installnode() {
|
installnode() {
|
||||||
echo "Installing node..."
|
echo "Installing node..."
|
||||||
[ "$(uname)" == "Darwin" ] && installnodemac
|
[ "$(uname)" == "Darwin" ] && installnodemac
|
||||||
|
@ -37,6 +47,7 @@ installnode() {
|
||||||
[ -f "/etc/arch-release" ] && installnodearch
|
[ -f "/etc/arch-release" ] && installnodearch
|
||||||
[ -f "/etc/artix-release" ] && installnodearch
|
[ -f "/etc/artix-release" ] && installnodearch
|
||||||
[ -f "/etc/fedora-release" ] && installnodefedora
|
[ -f "/etc/fedora-release" ] && installnodefedora
|
||||||
|
[ -f "/etc/gentoo-release" ] && installnodegentoo
|
||||||
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
||||||
sudo npm i -g neovim
|
sudo npm i -g neovim
|
||||||
}
|
}
|
||||||
|
@ -59,18 +70,28 @@ installpiponfedora() {
|
||||||
sudo dnf install -y pip >/dev/nul
|
sudo dnf install -y pip >/dev/nul
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installpipongentoo() {
|
||||||
|
sudo emerge -avn dev-python/pip
|
||||||
|
}
|
||||||
|
|
||||||
installpip() {
|
installpip() {
|
||||||
echo "Installing pip..."
|
echo "Installing pip..."
|
||||||
[ "$(uname)" == "Darwin" ] && installpiponmac
|
[ "$(uname)" == "Darwin" ] && installpiponmac
|
||||||
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installpiponubuntu
|
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installpiponubuntu
|
||||||
[ -f "/etc/arch-release" ] && installpiponarch
|
[ -f "/etc/arch-release" ] && installpiponarch
|
||||||
[ -f "/etc/fedora-release" ] && installpiponfedora
|
[ -f "/etc/fedora-release" ] && installpiponfedora
|
||||||
|
[ -f "/etc/gentoo-release" ] && installpipongentoo
|
||||||
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
||||||
}
|
}
|
||||||
|
|
||||||
installpynvim() {
|
installpynvim() {
|
||||||
echo "Installing pynvim..."
|
echo "Installing pynvim..."
|
||||||
pip3 install pynvim --user
|
if [ -f "/etc/gentoo-release" ]; then
|
||||||
|
echo "Installing using Portage"
|
||||||
|
sudo emerge -avn dev-python/pynvim
|
||||||
|
else
|
||||||
|
pip3 install pynvim --user
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
installpacker() {
|
installpacker() {
|
||||||
|
@ -133,12 +154,19 @@ installonfedora() {
|
||||||
pip3 install wheel ueberzug
|
pip3 install wheel ueberzug
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installongentoo() {
|
||||||
|
sudo emerge -avn sys-apps/ripgrep app-shells/fzf app-misc/ranger dev-python/neovim-remote virtual/jpeg sys-libs/zlib
|
||||||
|
pipinstallueberzug
|
||||||
|
npm install -g tree-sitter-cli
|
||||||
|
}
|
||||||
|
|
||||||
installextrapackages() {
|
installextrapackages() {
|
||||||
[ "$(uname)" == "Darwin" ] && installonmac
|
[ "$(uname)" == "Darwin" ] && installonmac
|
||||||
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installonubuntu
|
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installonubuntu
|
||||||
[ -f "/etc/arch-release" ] && installonarch
|
[ -f "/etc/arch-release" ] && installonarch
|
||||||
[ -f "/etc/artix-release" ] && installonarch
|
[ -f "/etc/artix-release" ] && installonarch
|
||||||
[ -f "/etc/fedora-release" ] && installonfedora
|
[ -f "/etc/fedora-release" ] && installonfedora
|
||||||
|
[ -f "/etc/gentoo-release" ] && installongentoo
|
||||||
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue