summaryrefslogtreecommitdiff
path: root/conform.lua
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-02-14 22:40:01 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-02-14 22:40:01 +0100
commit5be4048246def725c11499c8cff8f77da4cd47c4 (patch)
tree7bd62e82c66e4a94a93db73810fa37b1f38c6306 /conform.lua
parent49f248ea71b796d44c5080926f31f585d910f66c (diff)
downloadlazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.tar.gz
lazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.tar.bz2
lazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.zip
fix stuff
Diffstat (limited to 'conform.lua')
-rw-r--r--conform.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/conform.lua b/conform.lua
index fbefafc..65a50e9 100644
--- a/conform.lua
+++ b/conform.lua
@@ -14,6 +14,14 @@ return {
json = { "json_repair" },
},
+ -- Override the default isort configuration
+ formatters = {
+ isort = {
+ -- Remove the --filename argument and just use the file path
+ args = { "--stdout", "-" },
+ },
+ },
+
format_on_save = {
lsp_fallback = true, -- Use LSP if no dedicated formatter is found
async = false, -- Formatting must be synchronous to save correctly