File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11require (" 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 },
You can’t perform that action at this time.
0 commit comments