Improve auto formatting

This commit is contained in:
Thomas Gideon 2018-01-19 16:40:04 -05:00
parent 420dee4934
commit f58dde7a81
4 changed files with 3 additions and 4 deletions

View File

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

View File

@ -1,2 +1 @@
let g:formatdef_rustfmt_force = '"rustfmt --force"'
let g:formatters_rust = ['rustfmt_force']
let g:rustfmt_autosave = 1

1
ftplugin/scala.vim Normal file
View File

@ -0,0 +1 @@
au BufWrite * :Autoformat

View File

@ -1,7 +1,7 @@
set hidden
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ 'rust': ['rls'],
\ }
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>