From 3a2378099f115d21ccc59f59f6cc38ecc3f0f9fa Mon Sep 17 00:00:00 2001 From: Markis Taylor Date: Fri, 28 Jul 2023 15:27:49 -0400 Subject: [PATCH] feat(black): added an extra for black with null-ls --- lua/lazyvim/plugins/extras/formatting/black.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/formatting/black.lua diff --git a/lua/lazyvim/plugins/extras/formatting/black.lua b/lua/lazyvim/plugins/extras/formatting/black.lua new file mode 100644 index 00000000..52ceb1ae --- /dev/null +++ b/lua/lazyvim/plugins/extras/formatting/black.lua @@ -0,0 +1,15 @@ +return { + { + "williamboman/mason.nvim", + opts = function(_, opts) + table.insert(opts.ensure_installed, "black") + end, + }, + { + "jose-elias-alvarez/null-ls.nvim", + opts = function(_, opts) + local nls = require("null-ls") + table.insert(opts.sources, nls.builtins.formatting.black) + end, + }, +}