The Releases page provides an AppImage that runs on most Linux systems. No installation is needed, just download nvim.appimage and run it. (It might not work if your Linux distribution is more than 4 years old.)
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
If the ./nvim.appimage command fails, try:
./nvim.appimage --appimage-extract
./squashfs-root/AppRun --version
# Optional: exposing nvim globally.
sudo mv squashfs-root /
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
nvim
If a package is not provided for your platform, you can build Neovim from source. See Building-Neovim for details. If you have the prerequisites then building is easy:
git clone https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
For Unix-like systems this installs Neovim to /usr/local, while for Windows to C:\Program Files. Note, however, that this can complicate uninstallation. The following example avoids this by isolating an installation under $HOME/neovim:
rm -r build/ # clear the CMake cache
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/neovim"
make install
export PATH="$HOME/neovim/bin:$PATH"
There is a CMake target to uninstall after make install:
sudo cmake --build build/ --target uninstall
Alternatively, just delete the CMAKE_INSTALL_PREFIX artifacts:
sudo rm /usr/local/bin/nvim
sudo rm -r /usr/local/share/nvim/
Make sure to remove or move your current nvim
directory located inside ~/,config
IMPORTANT Requires [Neovim v0.8.0]](https://github.com/neovim/neovim/releases). Upgrade if you're on an earlier version.
git clone https://github.com/Atlas34/nvim.git ~/.config/nvim
Run nvim
and wait for the plugins to be installed
NOTE (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)
cp -rf ~/.config/nvim/fonts ~/.local/share/
Open nvim
and enter the following:
:checkhealth
You'll probably notice you don't have support for copy/paste and all tools used by null-ls formatting and linting.
Let's fix them.
-
On mac
pbcopy
should be builtin -
On Debian distribution type:
sudo apt install xsel
-
On Arch Linux distribution type
sudo pacman -S xsel
Install node-js and npm
-
On Debian distribution type:
sudo apt install nodejs npm
-
On Arch Linux distribution type
sudo pacman -S nodejs npm
Then run npm command to install prettier
NOTE to install prettier without sudo previledge, run the following commanads
npm config set prefix ~/.local/npm/
Add the following command to your .zshrc or .bashrc according to your shell to be able to run the program installed using npm from anywhere
export PATH=$PATH:~/.local/npm/bin
Open a new terminal to make sure that npm bin folder is part of the PATH and run the following commanad
npm i -g prettier
make sure that prettier is properly install
prettier --version
NOTE black require Python 3.6.2+ and pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
Add the following command to your .zshrc or .bashrc according to your shell to be able to run the program installed using pip from anywhere
export PATH=$PATH:~/.local/bin
pip install black
pip install flake8
NOTE stylua require rust
-
on debian distribution type:
sudo apt install rust
-
on arch linux distribution type
sudo pacman -S rust
You can install StyLua using cargo. By default, this builds for just Lua 5.1. You can pass the --features argument to build for Lua 5.2 (lua52) or Luau (luau)
cargo install stylua
cargo install stylua --features lua52
cargo install stylua --features luau
Add the following command to your .zshrc or .bashrc according to your shell to be able to run the program installed using cargo from anywhere
export PATH=$PATH:~/.cargo/bin
-
On Arch Linux distribution type
trizen google-java-format
-
on debian distribution type:
sudo apt install ripgrep
-
on arch linux distribution type
sudo pacman -S ripgrep
-
on debian distribution type:
sudo apt install clang-tools sudo apt install clangd # on some distributions
-
on arch linux distribution type
sudo pacman -S clang
add a link to the format option file:
ln -s ~/.config/nvim/lua/atlas/lsp/formats/.clang-format ~/.clang-format