From a39c6294bcd6de2f14364fb17371ebf854adedb9 Mon Sep 17 00:00:00 2001 From: dqnk <64268180+dqnk@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:48:38 +0000 Subject: [PATCH] fix(rust): rust lsp check typos fix --- autoload/SpaceVim/layers/lang/rust.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoload/SpaceVim/layers/lang/rust.vim b/autoload/SpaceVim/layers/lang/rust.vim index d11740ac6..8e8d64059 100644 --- a/autoload/SpaceVim/layers/lang/rust.vim +++ b/autoload/SpaceVim/layers/lang/rust.vim @@ -110,9 +110,9 @@ endif function! SpaceVim#layers#lang#rust#plugins() abort let plugins = [] call add(plugins, [g:_spacevim_root_dir . 'bundle/rust.vim', {'merged' : 0}]) - if !spacevim#layers#lsp#check_filetype('rust') - \ && !spacevim#layers#lsp#check_server('rls') - \ && !spacevim#layers#lsp#check_server('rust_analyzer') + if !SpaceVim#layers#lsp#check_filetype('rust') + \ && !SpaceVim#layers#lsp#check_server('rls') + \ && !SpaceVim#layers#lsp#check_server('rust_analyzer') call add(plugins, ['racer-rust/vim-racer', {'merged' : 0}]) endif return plugins @@ -202,9 +202,9 @@ function! s:language_specified_mappings() abort \ . string(function('s:execCMD')) . ', ["cargo fmt"])', \ 'format project files', 1) - if spacevim#layers#lsp#check_filetype('rust') - \ || spacevim#layers#lsp#check_server('rls') - \ || spacevim#layers#lsp#check_server('rust_analyzer') + if SpaceVim#layers#lsp#check_filetype('rust') + \ || SpaceVim#layers#lsp#check_server('rls') + \ || SpaceVim#layers#lsp#check_server('rust_analyzer') nnoremap K :call SpaceVim#lsp#show_doc() nnoremap gD :call SpaceVim#lsp#go_to_typedef()