Add support for standalone files

This commit is contained in:
Nelson Yeung 2020-12-08 21:17:31 +00:00
parent 850c41b2a9
commit a8acac1f4a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function! ale_linters#dart#analysis_server#GetProjectRoot(buffer) abort
" support for pubspec.yml " support for pubspec.yml
let l:pubspec = ale#path#FindNearestFile(a:buffer, 'pubspec.yaml') let l:pubspec = ale#path#FindNearestFile(a:buffer, 'pubspec.yaml')
return !empty(l:pubspec) ? fnamemodify(l:pubspec, ':h:h') : '' return !empty(l:pubspec) ? fnamemodify(l:pubspec, ':h:h') : '.'
endfunction endfunction
function! ale_linters#dart#analysis_server#GetCommand(buffer) abort function! ale_linters#dart#analysis_server#GetCommand(buffer) abort