1
0
Fork 0
mirror of https://github.com/luzifer/vim.git synced 2024-12-20 10:21:19 +00:00

Use eslint as autoformatter for vue files

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-02-20 15:56:50 +01:00
parent d83cfad139
commit 332afea3a4
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

4
vimrc
View file

@ -1010,7 +1010,9 @@ let g:go_autodetect_gopath = 0
" Autoformat configuration " Autoformat configuration
" "
au FileType python,javascript au BufWritePre <buffer> :Autoformat let g:formatters_vue = ['eslint_local']
au FileType python,javascript,vue au BufWritePre <buffer> :Autoformat
au FileType sh,zsh au BufWritePre <buffer> :call SHFmt() au FileType sh,zsh au BufWritePre <buffer> :call SHFmt()
" "