Skip to content
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

Answered by jose-elias-alvarez
fitrh asked this question in Q&A
Discussion options

You must be logged in to vote

Formatters run in the order in which you register them. For example, this config will run isort, then black:

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fitrh
Comment options

Answer selected by fitrh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants