(text, line_offset)
Create a popup using Vim +popupwin.
Create a popup using Vim +popupwin.
Create a popup using Vim + popupwin .
def _vim_popup(text, line_offset):
    """Create a popup using Vim +popupwin."""
    vim.Function("popup_create")(
        text,
        {
            "line": f"cursor{line_offset}",
            "col": "cursor",
            "wrap": False,
            "padding": (0, 1, 0, 1),
            "highlight": "PathfinderPopup",
            "time": int(vim.vars["pf_popup_time"]),
            "zindex": 1000,
        },
    )
def _vim_popup ( text , line_offset ) : vim . Function ( "popup_create" ) ( text , { "line" : f"cursor{line_offset}" , "col" : "cursor" , "wrap" : False , "padding" : ( 0 , 1 , 0 , 1 ) , "highlight" : "PathfinderPopup" , "time" : int ( vim . vars [ "pf_popup_time" ] ) , "zindex" : 1000 , } , )