diff options
-rw-r--r-- | ale_linters/crystal/crystal.vim | 4 | ||||
-rw-r--r-- | autoload/ale.vim | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ale_linters/crystal/crystal.vim b/ale_linters/crystal/crystal.vim index 8f38a61b..fd076e02 100644 --- a/ale_linters/crystal/crystal.vim +++ b/ale_linters/crystal/crystal.vim @@ -1,4 +1,4 @@ -" Author: Jordan Andree <https://github.com/jordanandree> +" Author: Jordan Andree <https://github.com/jordanandree>, David Alexander <opensource@thelonelyghost.com> " Description: This file adds support for checking Crystal with crystal build function! ale_linters#crystal#crystal#Handle(buffer, lines) abort @@ -24,7 +24,7 @@ function! ale_linters#crystal#crystal#Handle(buffer, lines) abort endfunction function! ale_linters#crystal#crystal#GetCommand(buffer) abort - let l:crystal_cmd = 'crystal build -f json --no-codegen -o ' + let l:crystal_cmd = 'crystal build -f json --no-codegen --no-color -o ' let l:crystal_cmd .= ale#Escape(g:ale#util#nul_file) let l:crystal_cmd .= ' %s' diff --git a/autoload/ale.vim b/autoload/ale.vim index 9c4be7d2..7cf1def6 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -1,4 +1,4 @@ -" Author: w0rp <devw0rp@gmail.com> +" Author: w0rp <devw0rp@gmail.com>, David Alexander <opensource@thelonelyghost.com> " Description: Primary code path for the plugin " Manages execution of linters when requested by autocommands @@ -85,7 +85,8 @@ function! ale#Lint(...) abort " Check if we previously requested checking the file. if has_key(s:should_lint_file_for_buffer, l:buffer) unlet s:should_lint_file_for_buffer[l:buffer] - let l:should_lint_file = 1 + " Lint files if they exist. + let l:should_lint_file = filereadable(expand('#' . l:buffer . ':p')) endif " Initialise the buffer information if needed. |