Python formatter

This commit is contained in:
Filippo Berto 2022-02-21 16:11:22 +01:00
parent 8e15618207
commit c651277b2e

View file

@ -263,6 +263,14 @@ in
commands = "set-option buffer formatcmd ${texlive.bin.latexindent}/bin/latexindent";
}
]
) ++ (
lib.optionals (pkgs.devEnvironment.enablePython) [
{
name = "BufSetOption";
option = "filetype=python";
commands = "set-option buffer formatcmd '${python3.pkgs.black}/bin/black -'";
}
]
) ++ (
lib.optionals (pkgs.devEnvironment.enableData) [
{