[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_global_extensions += ['coc-rust-analyzer']
let g:coc_user_config['rust-analyzer'] = { let g:coc_user_config['rust-analyzer'] = {
\ 'serverPath': 'rust-analyzer', \ 'serverPath': 'rust-analyzer',
\ 'lens': { \ 'lens.enable': v:false,
\ 'enable': v:false, \ 'inlayHints.typeHints': v:false,
\ }, \ 'inlayHints.chainingHints': v:false,
\ 'inlayHints': { \ 'diagnostics.enable': v:false,
\ 'typeHints': v:false, \ 'completion.autoimport.enable': v:false,
\ 'chainingHints': v:false, \ 'checkOnSave.command': 'clippy',
\ }, \ 'cargo.loadOutDirsFromCheck': v:true,
\ 'checkOnSave': {
\ 'command': 'clippy',
\ },
\ 'cargo': {
\ 'loadOutDirsFromCheck': v:true,
\ },
\ } \ }
" let g:coc_global_extensions += ['coc-rls'] " let g:coc_global_extensions += ['coc-rls']