neoformat
neoformat copied to clipboard
too many `no change necessary with prettier` output and stuck vim
.vimrc
Plug 'sbdchd/neoformat'
after/ftplugin/javascript.vim
autocmd BufWritePre,TextChanged,InsertLeave *.js Neoformat
When I save a file many times, it output so many no change necessary with prettier and stuck my vim(MacVim)
I am not sure how the interaction is with javascript.vim, but I am not using it and I get also multiple output lines (1 for each open tab) upon saving. Also neovim is stuck until formatting is completed. I am using the example from the README:
augroup fmt
autocmd!
autocmd BufWritePre *.js undojoin | Neoformat
augroup END