summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorNelson Yeung <nelsyeung@gmail.com>2020-12-08 21:17:31 +0000
committerNelson Yeung <nelsyeung@gmail.com>2021-01-22 16:37:38 +0000
commita8acac1f4aea5fbe5bc856da6ce63881332d28d4 (patch)
tree8e77ece0f0b0c073e39f104da964b042c8de689d /ale_linters
parent850c41b2a9556254a883a94f3f3c74374109a77b (diff)
downloadale-a8acac1f4aea5fbe5bc856da6ce63881332d28d4.zip
Add support for standalone files
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/dart/analysis_server.vim2
1 files changed, 1 insertions, 1 deletions
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