Create formatter.lua

Black formatting added
This commit is contained in:
SamPosh 2023-05-05 23:02:58 +05:30 committed by GitHub
parent 02f086f73f
commit bdba1538ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
return {
"jose-elias-alvarez/null-ls.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = { "mason.nvim" },
opts = function()
local nls = require("null-ls")
return {
sources = {
nls.builtins.formatting.black.with({
extra_args = {"--line-length=120", "--skip-string-normalization"},
}),
},
}
end,
}