2019-06-20 23:27:47 +00:00
|
|
|
let g:coc_filetypes += ['rust']
|
2020-09-04 19:55:46 +00:00
|
|
|
let g:coc_global_extensions += ['coc-rust-analyzer']
|
|
|
|
let g:coc_user_config['rust-analyzer'] = {
|
|
|
|
\ 'serverPath': 'rust-analyzer',
|
2020-12-02 00:05:02 +00:00
|
|
|
\ 'lens': {
|
|
|
|
\ 'enable': v:false,
|
|
|
|
\ },
|
2020-09-04 19:55:46 +00:00
|
|
|
\ 'inlayHints': {
|
2020-12-02 00:05:02 +00:00
|
|
|
\ 'typeHints': v:false,
|
2020-09-04 19:55:46 +00:00
|
|
|
\ 'chainingHints': v:false,
|
|
|
|
\ },
|
|
|
|
\ 'checkOnSave': {
|
2020-09-25 05:50:54 +00:00
|
|
|
\ 'command': 'clippy',
|
2020-09-04 19:55:46 +00:00
|
|
|
\ },
|
2020-09-25 05:50:54 +00:00
|
|
|
\ 'cargo': {
|
|
|
|
\ 'loadOutDirsFromCheck': v:true,
|
2020-12-02 00:05:02 +00:00
|
|
|
\ },
|
2020-09-04 19:55:46 +00:00
|
|
|
\ }
|
|
|
|
|
|
|
|
" let g:coc_global_extensions += ['coc-rls']
|
|
|
|
" let g:coc_user_config['rust'] = { 'clippy_preference': 'on' }
|