To download the latest stable version of Neovim, visit the Neovim releases page.
NOTE Backup your previous configuration (if any exists)
External Requirements:
- Basic utils:
git
,make
,unzip
, C Compiler (gcc
) - ripgrep
- fd
- A Nerd Font: optional, provides various icons
NOTE See Windows Installation to double check any additional Windows notes
Neovim's configurations are located under the following paths, depending on your OS:
Otherwise run
:echo stdpath('config')
in Neovim to find the correct path
OS | PATH |
---|---|
Linux, MacOS | $XDG_CONFIG_HOME/nvim , ~/.config/nvim |
Windows (cmd) | %userprofile%\AppData\Local\nvim\ |
Windows (powershell) | $env:USERPROFILE\AppData\Local\nvim\ |
Make sure you checked the Backup section before proceeding
Clone this repository into your Neovim config directory:
git clone https://github.com/m-krebs/nvim.git ~/.config/nvim
If you just want to try the configuration, then use this temporary docker container:
docker run -w /root -it --rm alpine:edge sh -uelic '
apk add git neovim ripgrep fd alpine-sdk --update
git clone https://github.com/m-krebs/nvim ~/.config/nvim
cd ~/.config/nvim
nvim
'
Start Neovim
nvim
Lazy will install all the plugins you have. Use :Lazy
to view
current plugin status.
- What should I do if I already have a pre-existing neovim configuration?
- You should back it up, then delete all files associated with it.
- This includes your existing init.lua and the neovim files in
~/.local
which can be deleted withrm -rf ~/.local/share/nvim/
Installation may require installing build tools, and updating the run command for telescope-fzf-native
See telescope-fzf-native
documentation for more details
This requires:
- Install CMake, and the Microsoft C++ Build Tools on Windows
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
Alternatively one can install gcc and make which don't require changing the config, the easiest way is to use choco:
- install chocolatey either follow the instructions on the page or use winget, run in cmd as admin:
winget install --accept-source-agreements chocolatey.chocolatey
- install all requirements using choco, exit previous cmd and open a new one so that choco path is set, run in cmd as admin:
choco install -y neovim git ripgrep wget fd unzip gzip mingw make
After that you can follow the [Installinstallation) section.