Add support for checking Haskell code via a wrapper script which can be used for other tools, and fix a readline problem with the DMD wrapper script.

This commit is contained in:
w0rp
2016-09-18 23:58:04 +01:00
parent e0fc0c7bb6
commit 57ef2c9833
5 changed files with 107 additions and 4 deletions

18
plugin/ale/util.vim Normal file
View File

@@ -0,0 +1,18 @@
if exists('g:loaded_ale_util')
finish
endif
let g:loaded_ale_util = 1
function! s:FindWrapperScript()
for parent in split(&runtimepath, ',')
" Expand the path to deal with ~ issues.
let path = expand(parent . '/' . 'stdin-wrapper')
if filereadable(path)
return path
endif
endfor
endfunction
let g:ale#util#stdin_wrapper = s:FindWrapperScript()