diff --git a/lua/efmls-configs/formatters/scalafmt.lua b/lua/efmls-configs/formatters/scalafmt.lua index 3d2a0aa..de74270 100644 --- a/lua/efmls-configs/formatters/scalafmt.lua +++ b/lua/efmls-configs/formatters/scalafmt.lua @@ -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, diff --git a/lua/efmls-configs/formatters/yq.lua b/lua/efmls-configs/formatters/yq.lua index 48c7005..076c5d6 100644 --- a/lua/efmls-configs/formatters/yq.lua +++ b/lua/efmls-configs/formatters/yq.lua @@ -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,