1
0
Fork 0
mirror of synced 2024-05-26 03:51:13 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/d.vim
Amir Salihefendic d2d303593e Updated plugins
2018-11-01 11:03:42 +01:00

17 lines
507 B
VimL

" Author: Auri <me@aurieh.me>
" Description: Functions for integrating with D linters.
function! ale#d#FindDUBConfig(buffer) abort
" Find a DUB configuration file in ancestor paths.
" The most DUB-specific names will be tried first.
for l:possible_filename in ['dub.sdl', 'dub.json', 'package.json']
let l:dub_file = ale#path#FindNearestFile(a:buffer, l:possible_filename)
if !empty(l:dub_file)
return l:dub_file
endif
endfor
return ''
endfunction