diff options
author | w0rp <devw0rp@gmail.com> | 2017-04-15 13:35:54 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-04-15 13:36:16 +0100 |
commit | 706dd050f2ec570eb12398d42a18f6c4f2bd56df (patch) | |
tree | 2c463aa0d5ef02feab3f2ef87215bd4417b47729 /ale_linters/nim/nimcheck.vim | |
parent | 2f009690c3cf442f828830cc1d2fece619f308ff (diff) | |
download | ale-706dd050f2ec570eb12398d42a18f6c4f2bd56df.zip |
Fix #257 in preparation for #427, standardise options with fallbacks, and make it so every value can be computed dynamically
Diffstat (limited to 'ale_linters/nim/nimcheck.vim')
-rw-r--r-- | ale_linters/nim/nimcheck.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ale_linters/nim/nimcheck.vim b/ale_linters/nim/nimcheck.vim index 0d3a1b51..92120970 100644 --- a/ale_linters/nim/nimcheck.vim +++ b/ale_linters/nim/nimcheck.vim @@ -1,7 +1,6 @@ " Author: Baabelfish " Description: Typechecking for nim files - function! ale_linters#nim#nimcheck#Handle(buffer, lines) abort let l:buffer_filename = fnamemodify(bufname(a:buffer), ':p:t') let l:pattern = '^\(.\+\.nim\)(\(\d\+\), \(\d\+\)) \(.\+\)' @@ -52,7 +51,10 @@ endfunction function! ale_linters#nim#nimcheck#GetCommand(buffer) abort - return 'nim check --path:' . fnameescape(fnamemodify(bufname(a:buffer), ':p:h')) . ' --threads:on --verbosity:0 --colors:off --listFullPaths %t' + let l:directory = fnameescape(fnamemodify(bufname(a:buffer), ':p:h')) + + return 'nim check --path:' . l:directory + \ . ' --threads:on --verbosity:0 --colors:off --listFullPaths %t' endfunction |