From 1339fa595489a23213e05470eebadaa30018478c Mon Sep 17 00:00:00 2001 From: David Barnett Date: Thu, 23 Nov 2023 22:21:55 -0600 Subject: [PATCH] Fix jsonnetfmt passing junk "-path" argument --- autoload/codefmt/jsonnetfmt.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/codefmt/jsonnetfmt.vim b/autoload/codefmt/jsonnetfmt.vim index a56fe3b..512baf3 100644 --- a/autoload/codefmt/jsonnetfmt.vim +++ b/autoload/codefmt/jsonnetfmt.vim @@ -27,11 +27,7 @@ function! codefmt#jsonnetfmt#GetFormatter() abort " Reformat the current buffer with jsonnetfmt or the binary named in " @flag(jsonnetfmt_executable) function l:formatter.Format() abort - let l:cmd = [ s:plugin.Flag('jsonnetfmt_executable') ] - let l:fname = expand('%:p') - if !empty(l:fname) - let l:cmd += ['-path', l:fname] - endif + let l:cmd = [ s:plugin.Flag('jsonnetfmt_executable'), '-' ] try " NOTE: Ignores any line ranges given and formats entire buffer.