Skip to content

VictorLemosR/neovim_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim in windows without admin rights

If you don't have admin rights, just download the zip file and extract

  1. 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
    • If your pc does not have a gpu, like my pc from work, change in wezterm.lua ' config.front_end = "Software" ')
  2. install SauceCodePro Nerd Font (ctrl+f: Source code pro) in folder "C:\windows\fonts"

  3. install neovim

  4. Download ripgrep

  5. Install C compiller for windows, choose "LLVM-MinGW".

    • Needed for treesitter
  6. 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" 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
    • Tips: https://cloud.google.com/nodejs/docs/setup#installing_nvm
  7. 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
  8. At this point, finally Neovim configuration can be installed:

    • Download this repo and put into %USERPROFILE%\user\appdata\local\nvim\
  9. Install lua

    • Needed for neorg
  10. To use copilotchat, define a home variable in cmd: setx HOME "%USERPROFILE%"

  11. For python, install pynvim: pip install pynvim

  12. For rust 12.1) Installation: https://www.rust-lang.org/tools/install 12.2) Input on cmd: rustup component add rust-src rustup component add rust-analyzer

  13. 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

  14. Adjust your paths used by neovim in "/lua/victor/paths.lua"

  15. Adjust hotkeys used for plugins in "lua/victor/hotkeys_plugins.lua"

  16. For portuguese people, download pt-utf8 from vim site and add it to neovim installation folder: nvim\share\nvim\runtime\spell

  17. To be able to run rust tests with rt:

    • cargo install cargo-nextest --locked
    • cargo +stable install cargo-llvm-cov --locked

Update

  1. To update configuration from this git, just repeat step 8
  2. To update neovim, just download latest version and substitute old folder with new

About

My configurations for neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages