Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1339fa5

Browse files
committed
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)

AltStyle によって変換されたページ (->オリジナル) /