We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7aea5c commit 1573786Copy full SHA for 1573786
autoload/codefmt/ktfmt.vim
@@ -48,6 +48,8 @@ function! codefmt#ktfmt#GetFormatter() abort
48
function l:formatter.FormatRange(startline, endline) abort
49
" Split the command on spaces, except when there's a proceeding \
50
let l:cmd = split(s:plugin.Flag('ktfmt_executable'), '\\\@<! ')
51
+ " ktfmt requires '-' as a filename arg to read stdin
52
+ let l:cmd = add(l:cmd, '-')
53
try
54
" TODO(tstone) Switch to using --lines once that arg is added, see
55
" https://github.com/facebookincubator/ktfmt/issues/218
0 commit comments