From f5b8dbb0d11e78b1ba71d842398c14f6de7c876f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Sava=C3=ABte?= Date: Fri, 15 Sep 2023 11:58:19 +0200 Subject: [PATCH] Add black compatibility to docformatter --- lua/null-ls/builtins/formatting/docformatter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/null-ls/builtins/formatting/docformatter.lua b/lua/null-ls/builtins/formatting/docformatter.lua index 5a9ad438..7538ea66 100644 --- a/lua/null-ls/builtins/formatting/docformatter.lua +++ b/lua/null-ls/builtins/formatting/docformatter.lua @@ -13,7 +13,9 @@ return h.make_builtin({ filetypes = { "python" }, generator_opts = { command = "docformatter", - args = { "-" }, + -- black compatibility added by default because 74 cols is very restrictive + -- in modern times + args = { "--black", "-" }, to_stdin = true, }, factory = h.formatter_factory,