summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-05 16:09:02 +0200
committerJulian T <julian@jtle.dk>2020-09-05 16:09:02 +0200
commit061ba37acc63a11a598ebcb3ad5860db785f309e (patch)
tree037ed722a956bbacc1c154cc8122e9a9b5f26a7f /vim
parentc62c5ace2bc4b529faf2bda1c56614f694f0d2ba (diff)
rust completion in vim
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc9
1 files changed, 8 insertions, 1 deletions
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 = '<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',