dotfiles/nvim/coc-languages/rust.vim

16 lines
526 B
VimL
Raw Normal View History

2019-06-20 23:27:47 +00:00
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,
\ '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']
" let g:coc_user_config['rust'] = { 'clippy_preference': 'on' }