Skip to content

Commit

Permalink
Merge pull request #146 from george-b/Whitespace
Browse files Browse the repository at this point in the history
Whitespace tweaks
  • Loading branch information
Shougo authored Feb 6, 2020
2 parents 695e3de + cb1542d commit bbfc89c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions autoload/racer.vim
Original file line number Diff line number Diff line change
@@ -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('<sfile>: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('<sfile>: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)
Expand Down

0 comments on commit bbfc89c

Please sign in to comment.