Create formatter.lua
Black formatting added
This commit is contained in:
parent
02f086f73f
commit
bdba1538ee
15
lua/custom/plugins/formatter.lua
Normal file
15
lua/custom/plugins/formatter.lua
Normal 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,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user