diff options
author | w0rp <devw0rp@gmail.com> | 2018-03-26 10:35:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-03-26 10:35:10 +0100 |
commit | 27c5faeafe055954b6e3164467844e78f7a07e55 (patch) | |
tree | 40f20da84b584b8acc51471fecc9e09f65122593 /autoload | |
parent | 8e9ae59e5e583e00df3d1a4075b5dd08cdd4de76 (diff) | |
download | ale-27c5faeafe055954b6e3164467844e78f7a07e55.zip |
Use the --stdin-filename option for textlint, so configuration files will be discovered better
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/textlint.vim | 4 |
1 files changed, 1 insertions, 3 deletions
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 |