#!/bin/sh # Compile and install Nvim # https://github.com/neovim/neovim # # Depends: # curl fzf git inotify-tools ripgrep tree-sitter-cli # Makedepends: # cmake curl gettext-dev mandoc-apropos 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 export CFLAGS="-O3 -march=native -mtune=native -flto=auto" export LDFLAGS="-flto=auto" make CMAKE_BUILD_TYPE=Release \ CMAKE_INSTALL_PREFIX="$HOME/.local" rm -rf ~/.local/lib/nvim \ ~/.local/share/nvim/runtime make install makewhatis -Tutf8 ~/.local/share/man