Use Macchiato instead of Black for Python

This commit is contained in:
Zach Zolton 2024-10-11 14:19:27 -04:00
parent 2193b6f007
commit da6fc73b1a
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -670,14 +670,15 @@ require('lazy').setup({
isort = { isort = {
prepend_args = { "-l", "1000000", "--wl", "0", "--sl" } prepend_args = { "-l", "1000000", "--wl", "0", "--sl" }
}, },
black = { macchiato = {
command = "black-macchiato",
prepend_args = { "-l", tostring(vim.o.textwidth) }, prepend_args = { "-l", tostring(vim.o.textwidth) },
}, },
}, },
formatters_by_ft = { formatters_by_ft = {
lua = { 'stylua' }, lua = { 'stylua' },
java = { "google-java-format" }, java = { "google-java-format" },
python = { "black", "isort" }, python = { "macchiato", "isort" },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" }, -- python = { "isort", "black" },
-- --