This is the Neovim configuration I'm currently using. I recently started using Neovim for bash scripting and simple C programming and want to begin with a basic setup. This will be a work in progress for a while. Who knows, maybe I'll switch to Neovim completely in the future.
- Install all dependencies
sudo apt update
sudo apt upgrade -y
sudo apt install build-essential -y
sudo apt install unzip -y
sudo apt install luarocks -y
sudo apt install ripgrep -y
sudo apt install fd-find -y
sudo apt-get install shellcheck -y
wget https://github.com/equalsraf/win32yank/releases/download/v0.1.1/win32yank-x64.zip -O /tmp/win32yank.zip
unzip /tmp/win32yank.zip -d /tmp/win32yank
sudo mv /tmp/win32yank/win32yank.exe /usr/local/bin/
sudo chmod +x /usr/local/bin/win32yank.exe
export PATH=$PATH:/usr/local/bin
sudo apt install nodejs npm -y
sudo npm install -g bash-language-server
sudo apt install clangd -y
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm lazygit lazygit.tar.gz
- Install Neovim
sudo snap install nvim --classic
rm -rf snap
- Configure git user
git config --global user.name "jappoman"
git config --global user.email "[email protected]"
- Clone this repository to
~/.config/nvim
mkdir -p ~/.config
git clone https://github.com/jappoman/neovim-config.git ~/.config
mkdir -p ~/.config/lazygit
- Launch Neovim and run
:Lazy update
to update all plugins.