{
  lib,
  pkgs,
  config,
  ...
}:
let
  cfg = config.presets.languages.python;
in
{
  options.presets.languages.python = {
    enable = lib.mkEnableOption "Python";
  };

  config = lib.mkIf cfg.enable {
    plugins = {
      conform-nvim.settings.formatters_by_ft.python = [ "black" ];
      lsp.servers.pyright.enable = true;
    };
    extraPackages = [ pkgs.black ];
  };
}
