code: def encoding(encoding=True):
      
      if isinstance(encoding, str):
          encoding = True
  
      def dec(f):
          f._nvim_decode = encoding
          return f
      return dec
docs: DEPRECATED: use pynvim.decode().