This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Is it possible to set the order of the formatters #533
-
Especially for filetype with multiple formatter, like python, with |
Beta Was this translation helpful? Give feedback.
Answered by
jose-elias-alvarez
Jan 3, 2022
Replies: 1 comment 1 reply
-
Formatters run in the order in which you register them. For example, this config will run local null_ls = require("null-ls")
local sources = {
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.black,
}
null_ls.setup({
sources = sources,
}) This isn't something I use myself, but to my knowledge it's working properly. Feel free to open an issue if it's not. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fitrh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Formatters run in the order in which you register them. For example, this config will run
isort
, thenblack
:This isn't something I use myself, but to my knowledge it's working properly. Feel free to open an issue if it's not.