diff --git a/modules/kakoune.nix b/modules/kakoune.nix index e17bf61..eef3453 100644 --- a/modules/kakoune.nix +++ b/modules/kakoune.nix @@ -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) [ {