From c6a817b36d3ece8e7e9c50a3fb36f4bdfe8557c2 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 25 Mar 2024 12:02:25 +0100 Subject: vim: Remove setting g:rustc_path Having a fallback rustc executable in my Vim closure at all times looked like a good idea in the first place, but since g:rustc_path is only used for things like :RustRun it is of very limited use (only for standalone Rust files). I had exactly *zero* uses for that since I introduced it, so there is really no need to bloat the closure size for something I don't use. Signed-off-by: aszlig --- pkgs/aszlig/vim/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/aszlig/vim/default.nix b/pkgs/aszlig/vim/default.nix index 641c39ea..a303d625 100644 --- a/pkgs/aszlig/vim/default.nix +++ b/pkgs/aszlig/vim/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchurl, fetchFromGitHub, writeText, writeTextFile, writeScript , runCommand, writers, python3Packages, ledger, meson, vim, buildGoPackage -, rustc, rustfmt, ansifilter +, rustfmt, ansifilter }: let @@ -601,9 +601,6 @@ let \ ['full_hex', 'rgb', 'rgba', 'hsl', 'hsla'] " rust - if !executable('rustc') - let g:rustc_path = '${rustc}/bin/rustc' - endif let g:rustfmt_command = '${rustfmt.override { asNightly = true; }}/bin/rustfmt' -- cgit 1.4.1