From 7a660576080d4a1c9fc5b3783d39c4af28c8c287 Mon Sep 17 00:00:00 2001 From: tiyn Date: Fri, 10 Oct 2025 07:13:29 +0200 Subject: [PATCH] nvim: added rust to compiler --- .local/bin/etc/nvim/compiler | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/etc/nvim/compiler b/.local/bin/etc/nvim/compiler index 48c89f0..0ac7429 100755 --- a/.local/bin/etc/nvim/compiler +++ b/.local/bin/etc/nvim/compiler @@ -42,5 +42,6 @@ case "$file" in *\.lua) lua "$file" ;; *\.sent) setsid sent "$file" 2>/dev/null & ;; *\.r|*\.R) Rscript "$file" ;; + *\.rs) rustc "$file" && "$base" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; esac