1
0
Fork 0
mirror of synced 2024-06-02 07:21:09 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/racket.vim
2021-07-30 22:52:54 +02:00

13 lines
321 B
VimL

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