From cb1542d2ee58562f4571d744cd997131ed003eed Mon Sep 17 00:00:00 2001 From: George Brown <321.george@gmail.com> Date: Thu, 6 Feb 2020 15:52:01 +0000 Subject: [PATCH] Whitespace tweaks - Remove trailing whitespace in the README - Consistently use four space indentation in racer#GetRacerCmd() --- README.md | 4 ++-- autoload/racer.vim | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ee906dc..cd14206 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ This plugin allows vim to use [Racer](http://github.com/phildawes/racer) for Rus ``` NeoBundle 'racer-rust/vim-racer' ``` - + vim-plug users: ``` Plug 'racer-rust/vim-racer' ``` - + Pathogen users: ``` git clone --depth=1 https://github.com/racer-rust/vim-racer.git ~/.vim/bundle/vim-racer diff --git a/autoload/racer.vim b/autoload/racer.vim index b718e0a..5d41977 100644 --- a/autoload/racer.vim +++ b/autoload/racer.vim @@ -1,22 +1,22 @@ let s:is_win = has('win32') function! racer#GetRacerCmd() abort - if !exists('g:racer_cmd') - let sep = s:is_win ? '\' : '/' - let path = join([ - \ escape(expand(':p:h'), '\'), - \ '..', - \ 'target', - \ 'release', - \ ], sep) - if isdirectory(path) - let pathsep = s:is_win ? ';' : ':' - let $PATH .= pathsep . path + if !exists('g:racer_cmd') + let sep = s:is_win ? '\' : '/' + let path = join([ + \ escape(expand(':p:h'), '\'), + \ '..', + \ 'target', + \ 'release', + \ ], sep) + if isdirectory(path) + let pathsep = s:is_win ? ';' : ':' + let $PATH .= pathsep . path + endif + let g:racer_cmd = 'racer' endif - let g:racer_cmd = 'racer' - endif - return expand(g:racer_cmd) + return expand(g:racer_cmd) endfunction function! s:RacerGetPrefixCol(base)