aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2024-02-27 19:56:14 +0800
committerGuangxiong Lin <[email protected]>2024-02-27 19:56:14 +0800
commit8f8d6216f28b1ead26802b5830a10be4844929d9 (patch)
treeb16e8b8c91d2ce22846109c4c8c2183b3261e7f5
parentd903f457fd802915ba7ee5a72bdc5f99bbb59db0 (diff)
downloaddotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.tar.gz
dotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.tar.bz2
dotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.zip
Add rust lsp
-rw-r--r--.vim/after/plugin/yegappan-lsp.vim11
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,