From 8f8d6216f28b1ead26802b5830a10be4844929d9 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 27 Feb 2024 19:56:14 +0800 Subject: Add rust lsp --- .vim/after/plugin/yegappan-lsp.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) 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, -- cgit v1.2.3