mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-23 19:41:33 +08:00
13 lines
321 B
VimL
Vendored
13 lines
321 B
VimL
Vendored
function! ale#racket#FindProjectRoot(buffer) abort
|
|
let l:cwd = expand('#' . a:buffer . ':p:h')
|
|
let l:highest_init = l:cwd
|
|
|
|
for l:path in ale#path#Upwards(l:cwd)
|
|
if filereadable(l:path.'/init.rkt')
|
|
let l:highest_init = l:path
|
|
endif
|
|
endfor
|
|
|
|
return l:highest_init
|
|
endfunction
|