- Clone this Repository:
git clone https://github.com/Hanufu/nvim.git ~/.config/nvim cd ~/.config/nvim
2.1 Install the Packer Plugin Manager on Unix, Linux installation:
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
2.2 Install the Packer Plugin Manager on Windows Powershell Installation:
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
- Remove VI and Add Dependencies:
sudo apt purge vim vim-common vim-runtime vim-tiny sudo apt update sudo apt-get install clangd-12 make g++ cpp ripgrep unzip cmake gcc xclip fuse
3.5 Custom Paths and Aliases for Neovim Configuration
echo -e '\n# Custom Paths and Aliases for Neovim Configuration\nexport PATH="/usr/bin/nvim:$PATH"\nexport PATH="/usr/lib/llvm-12/bin:$PATH"\nalias cdvim="cd ~/.config/nvim"\nalias vim="nvim"\nalias ~~="cd ~"' >> ~/.bashrc && source ~/.bashrc
- Download and Update Neovim:
wget https://github.com/neovim/neovim/releases/download/v0.9.5/nvim.appimage sudo chmod u+x nvim.appimage && sudo mv nvim.appimage /usr/bin/nvim
After completing the steps above, you can synchronize Packer and update the installed plugins by using the following command within Neovim:
:PackerSync