diff options
Diffstat (limited to '.vim/after/plugin/yegappan-lsp.vim')
-rw-r--r-- | .vim/after/plugin/yegappan-lsp.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.vim/after/plugin/yegappan-lsp.vim b/.vim/after/plugin/yegappan-lsp.vim index c767efe..c37c418 100644 --- a/.vim/after/plugin/yegappan-lsp.vim +++ b/.vim/after/plugin/yegappan-lsp.vim @@ -22,6 +22,17 @@ if executable('solargraph') \ }]) endif +if executable('rust-analyzer') + call LspAddServer([#{ + \ name: 'rust', + \ filetype: ['rust'], + \ omnicompl: v:true, + \ path: exepath('rust-analyzer'), + \ args: [], + \ syncInit: v:true + \ }]) +endif + call LspOptionsSet(#{ \ aleSupport: v:true, \ autoComplete: v:false, |