diff --git a/ale_linters/dart/analysis_server.vim b/ale_linters/dart/analysis_server.vim index 82d91334..ba8839bd 100644 --- a/ale_linters/dart/analysis_server.vim +++ b/ale_linters/dart/analysis_server.vim @@ -8,7 +8,7 @@ function! ale_linters#dart#analysis_server#GetProjectRoot(buffer) abort " support for pubspec.yml 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 function! ale_linters#dart#analysis_server#GetCommand(buffer) abort