We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91cb31 commit 8b54a61Copy full SHA for 8b54a61
lua/modules/lsp/conform.lua
@@ -2,13 +2,14 @@ require("conform").setup({
2
formatters_by_ft = {
3
lua = { "stylua" },
4
-- Uses ruff. If ruff unavailable, use isot and black
5
- python = function(bufnr)
+ --[[ python = function(bufnr)
6
if require("conform").get_formatter_info("ruff_format", bufnr).available then
7
return { "ruff_format", "ruff_organize_imports" }
8
else
9
return { "isort", "black" }
10
end
11
- end,
+ end, ]]
12
+ python = { "isort", "black", "docformatter" },
13
rust = { "rustfmt", lsp_format = "fallback" },
14
cpp = { "clang-format" }
15
},
0 commit comments