Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1339fa5

Browse files
committedNov 24, 2023
Fix jsonnetfmt passing junk "-path" argument
1 parent 03b8f30 commit 1339fa5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎autoload/codefmt/jsonnetfmt.vim

Lines changed: 1 addition & 5 deletions
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)
Please sign in to comment.