Skip to content

Commit aea453f

Browse files
try using ruff?
1 parent 42f29f5 commit aea453f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lua/modules/lsp/conform.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require("conform").setup({
22
formatters_by_ft = {
33
lua = { "stylua" },
4-
-- Uses ruff. If ruff unavailable, use isot and black
5-
--[[ python = function(bufnr)
4+
-- Uses ruff. If ruff unavailable, use isort and black
5+
python = function(bufnr)
66
if require("conform").get_formatter_info("ruff_format", bufnr).available then
7-
return { "ruff_format", "ruff_organize_imports" }
7+
return { "ruff_format", "ruff_organize_imports", "docformatter" }
88
else
9-
return { "isort", "black" }
9+
return { "isort", "black", "docformatter" }
1010
end
11-
end, ]]
12-
python = { "isort", "black", "docformatter" },
11+
end,
12+
-- python = { "isort", "black", "docformatter" },
1313
rust = { "rustfmt", lsp_format = "fallback" },
1414
cpp = { "clang-format" },
1515
},

0 commit comments

Comments
 (0)