Skip to content

Commit 3998a15

Browse files
committed
allow files to be opened and checked outside of project directory
1 parent cf35cae commit 3998a15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax_checkers/rust/cargo.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ endfunction
4646

4747
call g:SyntasticRegistry.CreateAndRegisterChecker({
4848
\ 'filetype': 'rust',
49+
\ 'cwd': expand('%:p:h'),
4950
\ 'name': 'cargo'})
5051

5152
let &cpo = s:save_cpo

0 commit comments

Comments
 (0)