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:
parent
d83cfad139
commit
332afea3a4
1 changed files with 3 additions and 1 deletions
4
vimrc
4
vimrc
|
@ -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()
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue