Create formatter.lua

Black formatting added
pull/299/head
SamPosh 2 years ago committed by GitHub
parent 02f086f73f
commit bdba1538ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,
}
Loading…
Cancel
Save