summaryrefslogtreecommitdiff
path: root/lua/plugins/conform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/conform.lua')
-rw-r--r--lua/plugins/conform.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua
index 2751524..7b7cd46 100644
--- a/lua/plugins/conform.lua
+++ b/lua/plugins/conform.lua
@@ -1,11 +1,12 @@
return {
{
"stevearc/conform.nvim",
- config = function()
- require("conform").setup({
- formatters_by_ft = { lua = { "stylua" } },
- format_on_save = { timeout_ms = 500, lsp_format = "fallback" },
- })
- end,
+ opts = {
+ formatters_by_ft = {
+ lua = { "stylua" },
+ python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
+ },
+ format_on_save = { timeout_ms = 500, lsp_format = "fallback" },
+ },
},
}