dotfiles/nvim/coc-languages/rust.vim
2020-09-25 09:20:20 +03:00

17 lines
437 B
VimL

let g:coc_filetypes += ['rust']
let g:coc_global_extensions += ['coc-rust-analyzer']
let g:coc_user_config['rust-analyzer'] = {
\ 'serverPath': 'rust-analyzer',
\ 'inlayHints': {
\ 'chainingHints': 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' }