From dc17ab2fb051efceafddc3b97ebe9f67c775e9b7 Mon Sep 17 00:00:00 2001 From: mhsn Date: Wed, 22 Jan 2025 00:44:19 +0000 Subject: split plugins into separate files and other changes --- lua/plugins/conform.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lua/plugins/conform.lua') 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" }, + }, }, } -- cgit v1.2.3