summaryrefslogtreecommitdiff
path: root/ale_linters/crystal
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/crystal')
-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',
\})