Merge pull request #293 from CH-DanReif/disable_individual_ftdetect
Allow disabling individual ftdetects via `g:polyglot_disabled`
This commit is contained in:
commit
fb8c5fa8e9
18
build
18
build
@ -59,14 +59,16 @@ extract() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in ${dir}/ftdetect/*; do
|
for f in "${dir}/ftdetect/"*; do
|
||||||
(
|
cat <<EOF >> tmp/polyglot.vim
|
||||||
echo "augroup filetypedetect";
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '${pack%%:*}') == -1
|
||||||
echo '" '"$pack";
|
augroup filetypedetect
|
||||||
cat "${f}";
|
" ${pack%%:*}, from ${f##*/ftdetect/} in ${pack#*:}
|
||||||
echo "augroup END";
|
$(cat "${f}")
|
||||||
echo
|
augroup end
|
||||||
) >> tmp/polyglot.vim;
|
endif
|
||||||
|
|
||||||
|
EOF
|
||||||
done
|
done
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user