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 1
1
require (" conform" ).setup ({
2
2
formatters_by_ft = {
3
3
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 )
6
6
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 " }
8
8
else
9
- return { "isort", "black" }
9
+ return { " isort" , " black" , " docformatter " }
10
10
end
11
- end, ]]
12
- python = { " isort" , " black" , " docformatter" },
11
+ end ,
12
+ -- python = { "isort", "black", "docformatter" },
13
13
rust = { " rustfmt" , lsp_format = " fallback" },
14
14
cpp = { " clang-format" },
15
15
},
You can’t perform that action at this time.
0 commit comments