aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/darker.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/darker.lua')
-rw-r--r--lua/conform/formatters/darker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/conform/formatters/darker.lua b/lua/conform/formatters/darker.lua
index 5f47e6b..9fe9b20 100644
--- a/lua/conform/formatters/darker.lua
+++ b/lua/conform/formatters/darker.lua
@@ -6,7 +6,7 @@ return {
description = "Run black only on changed lines.",
},
command = "darker",
- args = function(ctx)
+ args = function(self, ctx)
-- make sure pre-save doesn't lose changes while post-save respects
-- the revision setting potentially set in pyproject.toml
if vim.bo[ctx.buf].modified then