1
0
Fork 0
linux-conf/scripts/tools/neovim/install.sh
2022-01-04 20:51:05 +01:00

26 lines
No EOL
846 B
Bash
Executable file

source ./scripts/common.sh
if [[ "$WITH_NEOVIM" == 'yes' ]]; then
if ! command_exists nvim; then
install_package neovim
echo '[INFO] Neovim installed'
else
echo '[INFO] Neovim already installed'
fi
if [[ "$WITH_LAZYGIT" == 'yes' && ! -d "$HOME/.config/lazygit" ]]; then
ln -s "$CWD/configs/lazygit" "$HOME/.config/lazygit"
echo "[INFO] Neovim config linked with symbolic link : $CWD/configs/lazygit -> $HOME/.config/lazygit"
fi
if [[ ! -d "$HOME/.config/nvim" ]]; then
ln -s "$CWD/configs/nvim" "$HOME/.config/nvim"
echo "[INFO] Neovim config linked with symbolic link : $CWD/configs/nvim -> $HOME/.config/nvim"
install_package ripgrep fd dart lazygit rust-analyzer lldb
else
echo '[INFO] Neovim config already linked'
fi
else
echo '[INFO] WITH_NEOVIM not equals to yes. Ignoring...'
fi