add and update vim plugins with sensible defaults
[webi-installers/.git] / vim-prettier / prettier.vim
diff --git a/vim-prettier/prettier.vim b/vim-prettier/prettier.vim
new file mode 100644 (file)
index 0000000..233a6ad
--- /dev/null
@@ -0,0 +1,10 @@
+""""""""""""""""""""""""""""""""""""
+"    Prettier-specific defaults    "
+" from webinstall.dev/vim-prettier "
+""""""""""""""""""""""""""""""""""""
+
+" format as-you-type is quite annoying, so we turn it off
+let g:prettier#autoformat = 0
+
+" list all of the extensions for which prettier should run
+autocmd BufWritePre .babelrc,.eslintrc,.jshintrc,*.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync