After installing MSYS2, download gcc and the toolchains for all groups. This will take a minute to download and finish installing.
- Mingw-w64 GCC :
pacman -S mingw-w64-ucrt-x86_64-gcc
- Mingw-w64 Toolchain :
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
The following must be added to the System Environement Variables alongside the other Path variables : C:\msys64\mingw64\bin
You can check that the installation has succeeded by typing gcc --version
into a git bash terminal.
First off, a decent terminal is required. Don't go with GitBash/Git for Windows as it uses its own installation of Vim (not NeoVim). Windows Terminal is a good alternative.
Run config_neovim.bat
to create all the necessary config files. By default, this will copy the contents of config_files/nvim
into %LOCALAPPDATA%/nvim
.
run the command to clone packer on your machine : git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
Setup nvm using the installer. Run nvm install --latest
followed by nvm use [installed version]
. Finally, npm install -g yarn
to complete the setup.
Start nvim .
from the Windows Terminal. Navigate to the packer.lua
file and :so
, then run :PackerSync
to retrieve plugins, and :Mason
to manage LSP installations.