From 27c5faeafe055954b6e3164467844e78f7a07e55 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 26 Mar 2018 10:35:10 +0100 Subject: Use the --stdin-filename option for textlint, so configuration files will be discovered better --- autoload/ale/handlers/textlint.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/handlers/textlint.vim b/autoload/ale/handlers/textlint.vim index c06daa01..4e56e127 100644 --- a/autoload/ale/handlers/textlint.vim +++ b/autoload/ale/handlers/textlint.vim @@ -14,13 +14,11 @@ endfunction function! ale#handlers#textlint#GetCommand(buffer) abort let l:executable = ale#handlers#textlint#GetExecutable(a:buffer) - let l:config = ale#path#FindNearestFile(a:buffer, '.textlintrc') let l:options = ale#Var(a:buffer, 'textlint_options') return ale#node#Executable(a:buffer, l:executable) \ . (!empty(l:options) ? ' ' . l:options : '') - \ . (!empty(l:config) ? ' -c ' . ale#Escape(l:config) : '') - \ . ' -f json %t' + \ . ' -f json --stdin --stdin-filename %s' endfunction function! ale#handlers#textlint#HandleTextlintOutput(buffer, lines) abort -- cgit v1.2.3