diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rwxr-xr-x | utils/installer/install.sh | 30 | 
2 files changed, 30 insertions, 1 deletions
| @@ -135,6 +135,7 @@ or if you are on Arch you can get it from the AUR  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  ## Home screen diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 494ed5c6..10373fc3 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -30,6 +30,16 @@ installnodefedora() {      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() {  	echo "Installing node..."  	[ "$(uname)" == "Darwin" ] && installnodemac @@ -37,6 +47,7 @@ installnode() {  	[ -f "/etc/arch-release" ] && installnodearch  	[ -f "/etc/artix-release" ] && installnodearch  	[ -f "/etc/fedora-release" ] && installnodefedora +	[ -f "/etc/gentoo-release" ] && installnodegentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  	sudo npm i -g neovim  } @@ -59,18 +70,28 @@ installpiponfedora() {  	sudo dnf install -y pip >/dev/nul  } +installpipongentoo() { +	sudo emerge -avn dev-python/pip +} +  installpip() {  	echo "Installing pip..."  	[ "$(uname)" == "Darwin" ] && installpiponmac  	[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installpiponubuntu  	[ -f "/etc/arch-release" ] && installpiponarch  	[ -f "/etc/fedora-release" ] && installpiponfedora +	[ -f "/etc/gentoo-release" ] && installpipongentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  }  installpynvim() {  	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() { @@ -133,12 +154,19 @@ installonfedora() {      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() {  	[ "$(uname)" == "Darwin" ] && installonmac  	[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installonubuntu  	[ -f "/etc/arch-release" ] && installonarch  	[ -f "/etc/artix-release" ] && installonarch  	[ -f "/etc/fedora-release" ] && installonfedora +	[ -f "/etc/gentoo-release" ] && installongentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  } | 
