From d41f15bcbcc53d9a71eaa23dddcd6eb94328f7b7 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 6 Jun 2017 09:55:19 +0100 Subject: [PATCH] #620 Check the Nim files on disk instead --- ale_linters/nim/nimcheck.vim | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ale_linters/nim/nimcheck.vim b/ale_linters/nim/nimcheck.vim index 76fbe470..19e67303 100644 --- a/ale_linters/nim/nimcheck.vim +++ b/ale_linters/nim/nimcheck.vim @@ -44,10 +44,7 @@ endfunction function! ale_linters#nim#nimcheck#GetCommand(buffer) abort - let l:directory = ale#Escape(fnamemodify(bufname(a:buffer), ':p:h')) - - return 'nim check --path:' . l:directory - \ . ' --threads:on --verbosity:0 --colors:off --listFullPaths %t' + return 'nim check --verbosity:0 --colors:off --listFullPaths %s' endfunction @@ -56,5 +53,6 @@ call ale#linter#Define('nim', { \ 'executable': 'nim', \ 'output_stream': 'both', \ 'command_callback': 'ale_linters#nim#nimcheck#GetCommand', -\ 'callback': 'ale_linters#nim#nimcheck#Handle' +\ 'callback': 'ale_linters#nim#nimcheck#Handle', +\ 'lint_file': 1, \})