We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22e551a + 1339fa5 commit c6730fbCopy full SHA for c6730fb
autoload/codefmt/jsonnetfmt.vim
@@ -27,11 +27,7 @@ function! codefmt#jsonnetfmt#GetFormatter() abort
27
" Reformat the current buffer with jsonnetfmt or the binary named in
28
" @flag(jsonnetfmt_executable)
29
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
+ let l:cmd = [ s:plugin.Flag('jsonnetfmt_executable'), '-' ]
35
36
try
37
" NOTE: Ignores any line ranges given and formats entire buffer.
0 commit comments