From 061ba37acc63a11a598ebcb3ad5860db785f309e Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 5 Sep 2020 16:09:02 +0200 Subject: rust completion in vim --- vim/.vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vim/.vimrc b/vim/.vimrc index ea2d92c..02ee5af 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -59,7 +59,7 @@ set shellslash let g:UltiSnipsExpandTrigger = '' let g:mucomplete#chains = {} - let g:mucomplete#chains.default = [ 'ulti', 'path', 'omni', 'keyn' ] + let g:mucomplete#chains.default = [ 'omni', 'ulti', 'path', 'keyn' ] if has('nvim') let g:echodoc#enable_at_startup = 1 @@ -97,6 +97,13 @@ set shellslash \ 'whitelist': ['go'], \ }) endif + if executable('rls') + au User lsp_setup call lsp#register_server({ + \ 'name': 'rust', + \ 'cmd': {server_info->['rls']}, + \ 'whitelist': ['rust', 'rs'], + \ }) + endif if executable('solargraph') au User lsp_setup call lsp#register_server({ \ 'name': 'ruby', -- cgit v1.2.3