From b6931c106b0055e885bf378703d3e387b0a28650 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 24 Oct 2023 22:36:15 +0200 Subject: [PATCH] nvim: added R to compiler --- .local/bin/tools/nvim/compiler | 1 + 1 file changed, 1 insertion(+) 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