diff --git a/.local/bin/tools/nvim/compiler b/.local/bin/tools/nvim/compiler index 4a7c1c3..b01bcac 100755 --- a/.local/bin/tools/nvim/compiler +++ b/.local/bin/tools/nvim/compiler @@ -41,5 +41,6 @@ case "$file" in *\.go) go run "$file" ;; *\.lua) lua "$file" ;; *\.sent) setsid sent "$file" 2>/dev/null & ;; + *\.r|*\.R) Rscript "$file" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; esac