summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-02-04 13:16:44 +0000
committerw0rp <devw0rp@gmail.com>2018-02-04 13:16:44 +0000
commit0f822b063cb9553c9e00bc63d0184ba8577e6248 (patch)
tree5480af676cac50895a4db538efba4adbfded0c08 /autoload
parent31e0f48d62fdc5e9b3c4a0da1fc51ed94d9b335b (diff)
downloadale-0f822b063cb9553c9e00bc63d0184ba8577e6248.zip
Fix #1330 - Find isort configs better by changing the working directory
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/isort.vim8
1 files changed, 2 insertions, 6 deletions
diff --git a/autoload/ale/fixers/isort.vim b/autoload/ale/fixers/isort.vim
index 00d968f4..b6318221 100644
--- a/autoload/ale/fixers/isort.vim
+++ b/autoload/ale/fixers/isort.vim
@@ -15,12 +15,8 @@ function! ale#fixers#isort#Fix(buffer) abort
return 0
endif
- let l:config = ale#path#FindNearestFile(a:buffer, '.isort.cfg')
- let l:config_options = !empty(l:config)
- \ ? ' --settings-path ' . ale#Escape(l:config)
- \ : ''
-
return {
- \ 'command': ale#Escape(l:executable) . l:config_options . ' -',
+ \ 'command': ale#path#BufferCdString(a:buffer)
+ \ . ale#Escape(l:executable) . ' -',
\}
endfunction