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