def shutdown_hook(f):
    f._nvim_shutdown_hook = True
    f._nvim_bind = True
    return f
Tag a function or method as a shutdown hook.
dataset/ETHPy150Open neovim/python-client/neovim/plugin/decorators.py/shutdown_hook