vimrc/autoformat.vim

4 lines
166 B
VimL

au BufWrite * :Autoformat
" see here for instructions to get scalafmt set up
let g:formatdef_scalafmt = '"ng-nailgun scalafmt"'
let g:formatters_scala = ['scalafmt']