feat(black): added an extra for black with none-ls & conform.nvim (#1245)

* feat(black): added an extra for black with null-ls

* fix: update to none-ls/conform
This commit is contained in:
Markis Taylor 2023-10-08 16:34:06 -04:00 committed by GitHub
parent de93848f58
commit 5219cad564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,25 @@
return {
{
"williamboman/mason.nvim",
opts = function(_, opts)
table.insert(opts.ensure_installed, "black")
end,
},
{
"nvimtools/none-ls.nvim",
optional = true,
opts = function(_, opts)
local nls = require("null-ls")
table.insert(opts.sources, nls.builtins.formatting.black)
end,
},
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
["python"] = { { "blackd", "black" } },
},
},
},
}