diff options
author | w0rp <devw0rp@gmail.com> | 2016-09-18 23:58:04 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-09-18 23:58:04 +0100 |
commit | 57ef2c98339af5fd40e99e44c420815f9ed0805f (patch) | |
tree | 8d3e085f9140576a9d6e4e04ad703154f84412a0 /plugin | |
parent | e0fc0c7bb607760daa70ddd1a31fe1f30663e91f (diff) | |
download | ale-57ef2c98339af5fd40e99e44c420815f9ed0805f.zip |
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.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale/util.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugin/ale/util.vim b/plugin/ale/util.vim new file mode 100644 index 00000000..34cacca1 --- /dev/null +++ b/plugin/ale/util.vim @@ -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() |