mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] switch from RLS to rust-analyzer
This commit is contained in:
parent
ca421310dd
commit
5d68d60ff6
1 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,14 @@
|
|||
let g:coc_global_extensions += ['coc-rls']
|
||||
let g:coc_filetypes += ['rust']
|
||||
let g:coc_user_config['rust'] = { 'clippy_preference': 'on' }
|
||||
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'
|
||||
\ },
|
||||
\ }
|
||||
|
||||
" let g:coc_global_extensions += ['coc-rls']
|
||||
" let g:coc_user_config['rust'] = { 'clippy_preference': 'on' }
|
||||
|
|
Loading…
Reference in a new issue