Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Last active August 22, 2021 19:31
Show Gist options
  • Save RhythmShahriar/87b3881604456d11d9ee5447c627e17f to your computer and use it in GitHub Desktop.
Save RhythmShahriar/87b3881604456d11d9ee5447c627e17f to your computer and use it in GitHub Desktop.
Setup files of Minimal nVIM (https://github.com/RhythmShahriar/minimal-nvim)

Minimal nVIM | Setup

TESTED: Linux 20.04

Quick start script for Minimal nVIM

Automatic Setup

Run the command with sudo

sudo wget -O - https://gist.githubusercontent.com/RhythmShahriar/87b3881604456d11d9ee5447c627e17f/raw/40745ae745e9e12e93901583ba1ea37c6ecba0f8/install.sh | bash

Manual Setup

  1. Create a setup.sh file
  2. Copy all the codes into setup.sh file from https://gist.githubusercontent.com/RhythmShahriar/87b3881604456d11d9ee5447c627e17f/raw/40745ae745e9e12e93901583ba1ea37c6ecba0f8/install.sh
  3. Make all necessary modifications and save
  4. Make it executable sudo chmod +x setup.sh
  5. Run the command sudo ./setup.sh
#!/bin/bash
#######################################
## REMOVE VIM OR NVIM FROM LINUX
#######################################
sudo apt remove nvim vim -y
sudo apt auto-remove -y
sudo apt purge nvim vim -y
sudo rm -rf ~/.config/nvim
#######################################
## INSALL PHP & COMPOSER
#######################################
cd ~
## install php
sudo apt install php-fpm php-xml php-curl php-mysql php-mbstring php-bcmath php-cli -y
## install composer
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
rm composer-setup.php
## lsp dependency
composer global require php-stubs/wordpress-globals php-stubs/wordpress-stubs php-stubs/woocommerce-stubs php-stubs/acf-pro-stubs php-stubs/wp-cli-stubs
#######################################
## INSALL NVIM 0.5
#######################################
cd ~
curl -LO https://github.com/neovim/neovim/releases/download/v0.5.0/nvim.appimage
chmod u+x nvim.appimage
sudo mv nvim.appimage /usr/local/bin/nvim
#######################################
## INSALL DEV PKG
#######################################
sudo apt install build-essential -y
#######################################
## CLONE THE MINIMAL nVIM REPO
#######################################
git clone git@github.com:RhythmShahriar/minimal-nvim.git ~/.config/nvim
#######################################
## INSTALL NODEJS 14.*
#######################################
cd ~
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y
sudo rm nodesource_setup.sh
#######################################
## INSTALL PRETTIER with PHP, lua-fmt
#######################################
sudo npm i -g prettier
sudo npm i -g @prettier/plugin-php
sudo npm i -g lua-fmt
sudo npm i -g intelephense
#######################################
## RUN PACKER INSTALL
#######################################
nvim +PackerInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment