summaryrefslogtreecommitdiff
path: root/ale_linters/nim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-06 09:55:19 +0100
committerw0rp <devw0rp@gmail.com>2017-06-06 09:55:19 +0100
commitd41f15bcbcc53d9a71eaa23dddcd6eb94328f7b7 (patch)
tree8ceae2bda318b90f0e962cc159e0aa9b9a1c7bc0 /ale_linters/nim
parentfcc17dffbe1bbdc73d60e962477f3edadfdf573d (diff)
downloadale-d41f15bcbcc53d9a71eaa23dddcd6eb94328f7b7.zip
#620 Check the Nim files on disk instead
Diffstat (limited to 'ale_linters/nim')
-rw-r--r--ale_linters/nim/nimcheck.vim8
1 files 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,
\})