diff options
Diffstat (limited to 'conform.lua')
| -rw-r--r-- | conform.lua | 8 |
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 |
