mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
* racket: support racket-langserver lsp * racket-langserver: find highest dir with init.rkt * autoload/ale/racket: re-indent to 4 spaces * racket: lint: sort supported tools * racket: lint: function! This is _not_ needed anymore, but the lint wants it. See :help E127 * racket-langserver: do not use new dict format * racket: lint: use snake_case * add tests for racket-langserver * racket-langserver tests: correct result values
13 lines
321 B
VimL
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
|