Improve auto formatting
This commit is contained in:
parent
420dee4934
commit
f58dde7a81
4 changed files with 3 additions and 4 deletions
|
@ -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']
|
||||
|
|
|
@ -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
1
ftplugin/scala.vim
Normal file
|
@ -0,0 +1 @@
|
|||
au BufWrite * :Autoformat
|
2
lsp.vim
2
lsp.vim
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue