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