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.

authored by Wael Nasreddine and committed by GitHub a3bf0c2e 329e0978

+5 -2
+1 -1
pkgs/applications/editors/neovim/wrapper.nix
··· 100 100 # Only display the log on error since it will contain a few normally 101 101 # irrelevant messages. 102 102 if ! $out/bin/nvim \ 103 - -u ${vimUtils.vimrcFile (configure // { customRC = ""; })} \ 103 + -u ${vimUtils.vimrcFile (configure // { customRC = ""; beforePlugins = ''filetype indent plugin on | syn on''; })} \ 104 104 -i NONE -n \ 105 105 -E -V1rplugins.log -s \ 106 106 +UpdateRemotePlugins +quit! > outfile 2>&1; then
+4 -1
pkgs/misc/vim-plugins/vim-utils.nix
··· 188 188 vam ? null, 189 189 pathogen ? null, 190 190 plug ? null, 191 - customRC ? "" 191 + customRC ? "", 192 + beforePlugins ? "", 192 193 }: 193 194 194 195 let ··· 340 341 in writeText "vimrc" '' 341 342 " minimal setup, generated by NIX 342 343 set nocompatible 344 + 345 + ${beforePlugins} 343 346 344 347 ${vamImpl} 345 348 ${pathogenImpl}