Install Neovim and Supporting Toolsλ︎
Neovim 0.11.x required
Suppoting Toolsλ︎
Neovim uses several command line tools for searching for files and their contents, using the operating system clipbaord and compiling Treesitter language parsers.
ripgrepfast file contents search (used by telescope)find-fdadvanced search toolxclipfor X11 clipboard integration orwl-clipboardfor Waylandnode.jsand luarocks` for LSP servers- a C compiler for treesitter language parsers, e.g.
gccorclang
node.js install guide
AstroNvim uses Mason to install LSP servers, format and lint tools. Many of the LSP servers require node.
Install Neovimλ︎
Practicalli recommends the FNM tool to manage the installation of specific versions of Node.js.
An install script is included in Practicalli Dotfiles for Debian Linux and any Operating System that can run a Bash script.
Clone Practicalli Dotfiles repository.
Run the debian-linux/tui/dra.sh script to install the DRA tool (or debian-linux/dev-tools-install.sh script).
Run the debian-linux/tui/nodejs-fnm-install.sh script to install the latest Neovim release system wide.
Install latest stable release of Neovim on Linux
#!/usr/bin/env bash
# Install the current release version of Neovim from GitHub for all users
echo
echo "# ---------------------------------------"
echo "Neovim hyper-configurable editor - installed for all users"
# install the nvim.appimage (automatic only installs nvim and not runtime)
# rename file to `nvim` the standard executable name
sudo dra download --select nvim-linux-x86_64.appimage --install --output /usr/local/bin/nvim neovim/neovim
echo
echo "Neovim version: $(nvim --version)"
echo "# ---------------------------------------"
echo ""
Download the Linux AppImage from the Neovim Release page and place the file on the executable path, e.g. $HOME/.local/bin or /usr/local/bin/ for system wide use (e.g. root account).
Make the AppImage executable
Create a symbolic link called nvim to the nvim.appimage file (or rename the file to nvim)
nvim command can now be run in a terminal from any directory.
Download nvim-macos.tar.gz From the Neovim GitHub release page
Avoid "unknown developer" warning from MacOSX
Make a local apps directory for neovim (and other things like node.js, etc.)
Extract the neovim archive
Create the ~/.local/bin/nvim symbolic link to include Neovim on the OS execution path
echo $PATHto check.local/binis included in the execution the path by the Operating System command line shell
Run nvim (or setup a Neovim configuration first, e.g. AstroNvim)
From the Neovim GitHub release page:
- Install
libintlandgettext(e.g. viabrew install libintl gettext) - Download nvim-macos.tar.gz
- Run
xattr -c ./nvim-macos.tar.gz(to avoid "unknown developer" warning) - Make local apps directory for neovim (and other things like node.js, etc.)
- Extract the neovim download
- Create nvim symbolic link in
~/.local/binto include Neovim on the OS execution path (check.local/binis added to the execution the path by the Operating System command line shell)
Linux version only packaged as AppImage from Neovim 0.9 onward
A .deb file can be created after building Neovim from source.
Neovim Build Prerequisites for each operating system
Debian Packages
Install packages to support building Neovim
Clone the Neovim GitHub repository
Change into the cloned directory and change to the stable release to build version 0.9.0
Build a release
Once the nvim release has been built, create a debian package for use with Ubuntu and Debian systems
Add a configurationλ︎
Neovim is a powerful editor although a configuration adds valuable features for software engineering tasks.