Skip to content

Commit 8b54a61

Browse files
use black, isort, docformatter
1 parent b91cb31 commit 8b54a61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/modules/lsp/conform.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ require("conform").setup({
22
formatters_by_ft = {
33
lua = { "stylua" },
44
-- Uses ruff. If ruff unavailable, use isot and black
5-
python = function(bufnr)
5+
--[[ python = function(bufnr)
66
if require("conform").get_formatter_info("ruff_format", bufnr).available then
77
return { "ruff_format", "ruff_organize_imports" }
88
else
99
return { "isort", "black" }
1010
end
11-
end,
11+
end, ]]
12+
python = { "isort", "black", "docformatter" },
1213
rust = { "rustfmt", lsp_format = "fallback" },
1314
cpp = { "clang-format" }
1415
},

0 commit comments

Comments
 (0)