aboutsummaryrefslogtreecommitdiff
path: root/compile/nvim.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2025-12-26 00:57:46 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2025-12-26 00:57:46 -0500
commit9cd1e4f16131c41f2b16637ced9fd184573a7102 (patch)
tree0d115ba19ca7329748eea0de14a3bee1e802ecd6 /compile/nvim.sh
parent14cfc33991fa3b858301fb8738ae7dbf41e48e80 (diff)
downloaddotfiles-9cd1e4f16131c41f2b16637ced9fd184573a7102.tar.gz
dotfiles-9cd1e4f16131c41f2b16637ced9fd184573a7102.tar.xz
Start shifting over to nvim0.12, fix treesitter, add nvim compile script
Diffstat (limited to 'compile/nvim.sh')
-rwxr-xr-xcompile/nvim.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/compile/nvim.sh b/compile/nvim.sh
new file mode 100755
index 0000000..d5badf5
--- /dev/null
+++ b/compile/nvim.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+if [ "$(id -u)" -eq 0 ] ; then
+ echo "Run as a regular user"
+ exit 1
+fi
+set -ex
+codedir="${CODEDIR:-$HOME/scm}"
+nvimdir="${codedir}/nvim"
+if ! [ -d "$nvimdir" ] ; then
+ git clone https://github.com/neovim/neovim "$nvimdir"
+fi
+cd "$nvimdir"
+# git clean -fdx .
+rm -rf build || echo ""
+make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
+make install
+cd -