[nvim] disable rust-analyzer's diagnostics and autoimports

This commit is contained in:
Dmytro Meleshko 2021-02-01 12:44:49 +02:00 committed by pull[bot]
parent 482828639e
commit 57f0e01b51
1 changed files with 7 additions and 13 deletions

View File

@ -2,19 +2,13 @@ let g:coc_filetypes += ['rust']
let g:coc_global_extensions += ['coc-rust-analyzer']
let g:coc_user_config['rust-analyzer'] = {
\ 'serverPath': 'rust-analyzer',
\ 'lens': {
\ 'enable': v:false,
\ },
\ 'inlayHints': {
\ 'typeHints': v:false,
\ 'chainingHints': v:false,
\ },
\ 'checkOnSave': {
\ 'command': 'clippy',
\ },
\ 'cargo': {
\ 'loadOutDirsFromCheck': v:true,
\ },
\ 'lens.enable': v:false,
\ 'inlayHints.typeHints': v:false,
\ 'inlayHints.chainingHints': v:false,
\ 'diagnostics.enable': v:false,
\ 'completion.autoimport.enable': v:false,
\ 'checkOnSave.command': 'clippy',
\ 'cargo.loadOutDirsFromCheck': v:true,
\ }
" let g:coc_global_extensions += ['coc-rls']