from typing import List


def get_editor_args(editor: str) -> List[str]:
    """Get recommended editor flags"""

    if editor in ["vim"]:
        return ["-f", "-o"]
    elif editor in ["emacs"]:
        return ["-nw"]
    elif editor in ["nano"]:
        return ["-R"]
    elif editor in ["code", "codium"]:
        return ["-w", "-n"]

    return []