def encoding(encoding=True):
    if isinstance(encoding, str):
        encoding = True

    def dec(f):
        f._nvim_decode = encoding
        return f
    return dec
DEPRECATED: use neovim.decode().
dataset/ETHPy150Open neovim/python-client/neovim/plugin/decorators.py/encoding