|
|
|
@ -331,6 +331,23 @@ require('lazy').setup({
|
|
|
|
|
lua = { 'stylua' },
|
|
|
|
|
-- Conform can also run multiple formatters sequentially
|
|
|
|
|
-- python = { "isort", "black" },
|
|
|
|
|
python = {
|
|
|
|
|
'ruff_fix',
|
|
|
|
|
'ruff_organize_imports',
|
|
|
|
|
ruff_format = {
|
|
|
|
|
args = function(_, _)
|
|
|
|
|
return {
|
|
|
|
|
'format',
|
|
|
|
|
'--force-exclude',
|
|
|
|
|
'--line-length',
|
|
|
|
|
'120',
|
|
|
|
|
'--stdin-filename',
|
|
|
|
|
'$FILENAME',
|
|
|
|
|
'-',
|
|
|
|
|
}
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
--
|
|
|
|
|
-- You can use a sub-list to tell conform to run *until* a formatter
|
|
|
|
|
-- is found.
|
|
|
|
|