Skip to content

Commit c6730fb

Browse files
authored
Fix jsonnetfmt passing junk "-path" argument (#232)
Fixes #231.
2 parents 22e551a + 1339fa5 commit c6730fb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

autoload/codefmt/jsonnetfmt.vim

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ function! codefmt#jsonnetfmt#GetFormatter() abort
2727
" Reformat the current buffer with jsonnetfmt or the binary named in
2828
" @flag(jsonnetfmt_executable)
2929
function l:formatter.Format() abort
30-
let l:cmd = [ s:plugin.Flag('jsonnetfmt_executable') ]
31-
let l:fname = expand('%:p')
32-
if !empty(l:fname)
33-
let l:cmd += ['-path', l:fname]
34-
endif
30+
let l:cmd = [ s:plugin.Flag('jsonnetfmt_executable'), '-' ]
3531

3632
try
3733
" NOTE: Ignores any line ranges given and formats entire buffer.

0 commit comments

Comments
 (0)