diff options
author | Guangxiong Lin <[email protected]> | 2024-02-27 19:56:14 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2024-02-27 19:56:14 +0800 |
commit | 8f8d6216f28b1ead26802b5830a10be4844929d9 (patch) | |
tree | b16e8b8c91d2ce22846109c4c8c2183b3261e7f5 | |
parent | d903f457fd802915ba7ee5a72bdc5f99bbb59db0 (diff) | |
download | dotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.tar.gz dotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.tar.bz2 dotfiles-8f8d6216f28b1ead26802b5830a10be4844929d9.zip |
Add rust lsp
-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, |