neoformat icon indicating copy to clipboard operation
neoformat copied to clipboard

too many `no change necessary with prettier` output and stuck vim

Open J-Liu opened this issue 7 years ago • 1 comments

.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)

screen shot 2018-06-19 at 4 29 00 pm

J-Liu avatar Jun 19 '18 08:06 J-Liu

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

niderhoff avatar Nov 26 '21 16:11 niderhoff