diff options
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/after/plugin/lsp.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 5020427..258e3f7 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -62,6 +62,14 @@ if executable('zk') \ }) endif +if executable('rust-analyzer') + au User lsp_setup call lsp#register_server({ + \ 'name': 'rust-analyzer', + \ 'cmd': {server_info->['rust-analyzer']}, + \ 'allowlist': ['rust'], + \ }) +endif + function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal nocscopetag |