mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 23:43:41 -05:00
Disable ftdetect parts of some plugins, fixes #254
vim-polyglot discourages use of commands like: autocmd BufRead * autocmd BufNewFile * And others that execute for every file / buffer opened.
This commit is contained in:
8
build
8
build
@@ -52,6 +52,13 @@ extract() {
|
||||
fi
|
||||
done
|
||||
|
||||
output "${subdirs##, })\n"
|
||||
|
||||
if (echo "julia coffee-script elixir fish git plantuml scala swift" | fgrep -q "$name"); then
|
||||
echo "Skipping ftdetect installation of $name"
|
||||
continue
|
||||
fi
|
||||
|
||||
for f in ${dir}/ftdetect/*; do
|
||||
(
|
||||
echo "augroup filetypedetect";
|
||||
@@ -62,7 +69,6 @@ extract() {
|
||||
) >> tmp/polyglot.vim;
|
||||
done
|
||||
|
||||
output "${subdirs##, })\n"
|
||||
done
|
||||
|
||||
mv tmp/polyglot.vim ftdetect/
|
||||
|
||||
Reference in New Issue
Block a user