For the below items, if you don't have admin rights, just download the zip file for each one and extract wherever you want. In case you do have admin rights, you can go with the .exe
-
install wezterm and place wezterm.lua from here inside wezterm folder:
- Inside the "wezterm.lua" file, there are some shortcuts to change and also change PATH to your default opening folder
- I usually like to put my opening folder where my codes are
- If your pc does not have a gpu, like my pc from work, change in wezterm.lua 'config.front_end = "Software"'
- Inside the "wezterm.lua" file, there are some shortcuts to change and also change PATH to your default opening folder
-
Install SauceCodePro Nerd Font (ctrl+f: Source code pro) in folder "C:\windows\fonts"
- Make sure you extract the fonts before pasting inside the folder
-
Install neovim
- Download "nvim-win64.zip"
-
Download ripgrep
- ripgrep-{xx.x.x}-x86_64-pc-windows-msvc.zip
-
Install C compiller for windows, choose "LLVM-MinGW".
- Needed for treesitter
-
Install git
- Windows -> 64-bit git for windows setup
- You can accept all default choices
- Windows -> 64-bit git for windows setup
-
Install nvm for Windows following this [guide][https://github.com/coreybutler/nvm-windows/wiki#manual-installation] then open cmd, change directory to nvm installation folder and run "nvm install latest"
- To configure environment variable without admin rights, open cmd and type:
setx NVM_HOME "path\to\nvm"
setx NVM_SYMLINK "C:\Program Files\nodejs"
(NVM_SYMLINK has to be on program files, no matter where you installed, the folder doesn't even need to exist)
setx PATH "%NVM_HOME%;%NVM_SYMLINK%"- Careful when setting PATH this way, because you might lose old modifications to path. One way to keep old modifications:
setx PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%", but will double the core path and might go over 1000 characters limitation
- Careful when setting PATH this way, because you might lose old modifications to path. One way to keep old modifications:
- Tips: https://cloud.google.com/nodejs/docs/setup#installing_nvm
- To configure environment variable without admin rights, open cmd and type:
-
Add to your path nvim\bin, ripgrep folder, llvm-mingw\bin, nvm folder (which should be in %USERPROFILE%\Appdata\Roaming\nvm{version})
- To install without admin privileges, run inside cmd: setx PATH "C:\NEW\FOLDER\TO\PATH". For example, for me:
setx PATH
"%NVM_HOME%;%NVM_SYMLINK%;%USERPROFILE%\victor\neovim\bin;%USERPROFILE%\victor\ripgrep;%USERPROFILE%\victor\llvm-mingw-20240619-ucrt-x86_64\bin;%USERPROFILE%\appdata\roaming\nvm\v22.6.0;%USERPROFILE%\victor\lua\5.1;"- You need to put all the extra variables for path, hence NVM_HOME and NVM_SYMLINK again. Also included future paths here, which is not a problem if you decide not to install
- To install without admin privileges, run inside cmd: setx PATH "C:\NEW\FOLDER\TO\PATH". For example, for me:
-
At this point, finally Neovim configuration can be installed:
- Download this repo and put into %USERPROFILE%\appdata\local\nvim\
-
To be able to use the debugger with python:
- install debugpy (pip install debugpy)
- change python folder inside
-
To use copilotchat, define a home variable in cmd: setx HOME "%USERPROFILE%"
-
For python, install pynvim: pip install pynvim
-
For rust:
- Installation: https://www.rust-lang.org/tools/install
- Input on cmd:
- rustup component add rust-src
- rustup component add rust-analyzer
-
Manually, type into neovim ":Mason" and install linters and formatters. For current config, you must install "black", "isort", "prettier", "stylua". If new ones are added, configure on /lua/plugins/none_ls.lua
-
Adjust your paths used by neovim in "/lua/victor/paths.lua"
-
Adjust hotkeys used for plugins in "lua/victor/hotkeys_plugins.lua"
-
For portuguese people, download pt-utf8 from vim site and add it to neovim installation folder: nvim\share\nvim\runtime\spell
-
To be able to run rust tests with rt:
- cargo install cargo-nextest --locked
- cargo +stable install cargo-llvm-cov --locked
- To update neovim configuration to my latest, just repeat step 8
- To update neovim application, just download latest version and substitute old folder with new