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

This commit is contained in:
Dmytro Meleshko 2021-02-01 12:44:49 +02:00
parent f79ed65e0c
commit 707397ae9e

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']