#!/bin/sh # Compile and install Nvim (Alpine Linux) # https://github.com/neovim/neovim # # Depends: # curl fzf git ripgrep tree-sitter-cli # Makedepends: # cmake curl gettext-dev set -eu tmpdir=$(mktemp -d) trap 'rm -rf -- "$tmpdir"' EXIT INT TERM cd "$tmpdir" git clone --depth=1 https://github.com/neovim/neovim cd neovim make CMAKE_BUILD_TYPE=Release \ CMAKE_INSTALL_PREFIX="$HOME/.local" rm -rf ~/.local/lib/nvim \ ~/.local/share/nvim/runtime make install