From a61c52d325835e24dc14ffb7748a32b8f087ae32 Mon Sep 17 00:00:00 2001 From: Arnold Chand Date: Sun, 11 Feb 2024 12:28:42 -0400 Subject: [PATCH] fix(scalafmt, yq): proper string.format args --- lua/efmls-configs/formatters/scalafmt.lua | 2 +- lua/efmls-configs/formatters/yq.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,