Skip to content

Commit

Permalink
fix(scalafmt, yq): proper string.format args
Browse files Browse the repository at this point in the history
  • Loading branch information
creativenull committed Feb 11, 2024
1 parent aba9a11 commit a61c52d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/efmls-configs/formatters/scalafmt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local fs = require('efmls-configs.fs')

local formatter = 'scalafmt'
local args = '--stdin'
local command = string.format(fs.executable(formatter), args)
local command = string.format('%s %s', fs.executable(formatter), args)

return {
formatCanRange = true,
Expand Down
2 changes: 1 addition & 1 deletion lua/efmls-configs/formatters/yq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local fs = require('efmls-configs.fs')

local formatter = 'yq'
local args = '. "${INPUT}"'
local command = string.format(fs.executable(formatter), args)
local command = string.format('%s %s', fs.executable(formatter), args)

return {
formatCommand = command,
Expand Down

0 comments on commit a61c52d

Please sign in to comment.