summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorJordan Andree <jordanandree@gmail.com>2017-04-15 10:37:32 -0400
committerJordan Andree <jordanandree@gmail.com>2017-04-15 10:37:32 -0400
commit11a4af2727a3c2156899ec31ace579bc016f5982 (patch)
tree0807cdc16ab833a0164522bcac254292dfcbe116 /ale_linters
parent706dd050f2ec570eb12398d42a18f6c4f2bd56df (diff)
downloadale-11a4af2727a3c2156899ec31ace579bc016f5982.zip
turn on lint_file for crystal build to resolve `require` path errors
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/crystal/crystal.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/crystal/crystal.vim b/ale_linters/crystal/crystal.vim
index 95ab94ff..8059e776 100644
--- a/ale_linters/crystal/crystal.vim
+++ b/ale_linters/crystal/crystal.vim
@@ -26,7 +26,7 @@ endfunction
function! ale_linters#crystal#crystal#GetCommand(buffer) abort
let l:crystal_cmd = 'crystal build -f json --no-codegen -o '
let l:crystal_cmd .= shellescape(g:ale#util#nul_file)
- let l:crystal_cmd .= ' %t'
+ let l:crystal_cmd .= ' %s'
return l:crystal_cmd
endfunction
@@ -35,6 +35,7 @@ call ale#linter#Define('crystal', {
\ 'name': 'crystal',
\ 'executable': 'crystal',
\ 'output_stream': 'both',
+\ 'lint_file': 1,
\ 'command_callback': 'ale_linters#crystal#crystal#GetCommand',
\ 'callback': 'ale_linters#crystal#crystal#Handle',
\})