diff options
author | Julian T <julian@jtle.dk> | 2020-09-05 16:09:02 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-05 16:09:02 +0200 |
commit | 061ba37acc63a11a598ebcb3ad5860db785f309e (patch) | |
tree | 037ed722a956bbacc1c154cc8122e9a9b5f26a7f /vim | |
parent | c62c5ace2bc4b529faf2bda1c56614f694f0d2ba (diff) |
rust completion in vim
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -59,7 +59,7 @@ set shellslash let g:UltiSnipsExpandTrigger = '<C-s>' 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', |