summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorWael Nasreddine <wael.nasreddine@gmail.com>2019-08-13 12:25:06 -0700
committerGitHub <noreply@github.com>2019-08-13 12:25:06 -0700
commita3bf0c2e4005670fd710e7eb42403e0348754e77 (patch)
treecaaec82a35466ed4ebf644242ee687be518b4a0a /pkgs/misc
parent329e097828de876410d2f82f23126115fcfc28dd (diff)
downloadnixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar.gz
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar.bz2
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar.lz
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar.xz
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.tar.zst
nixpkgs-a3bf0c2e4005670fd710e7eb42403e0348754e77.zip
vimPlugins: turn filetype and syntax before sourcing the plugins (#66536)
Vim Terraform expects the `filetypedetect` group to exist. However, since we were enabling the filetype and the syntax *after* loading the plugins, it was exiting with an error preventing us from generating the remote plugins manifest with the plugin enabled. See #65894 for context.
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/vim-plugins/vim-utils.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/misc/vim-plugins/vim-utils.nix b/pkgs/misc/vim-plugins/vim-utils.nix
index 2633c43d699..44bc7ec3ced 100644
--- a/pkgs/misc/vim-plugins/vim-utils.nix
+++ b/pkgs/misc/vim-plugins/vim-utils.nix
@@ -188,7 +188,8 @@ let
     vam ? null,
     pathogen ? null,
     plug ? null,
-    customRC ? ""
+    customRC ? "",
+    beforePlugins ? "",
   }:
 
     let
@@ -341,6 +342,8 @@ let
   " minimal setup, generated by NIX
   set nocompatible
 
+  ${beforePlugins}
+
   ${vamImpl}
   ${pathogenImpl}
   ${plugImpl}