kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

User commands should be sourced before user rc.conf #112

Closed amerlyq closed 2 years ago

amerlyq commented 2 years ago

I have both my own commands.py and plugins/ inside home config. Errors I got on launching rnvimr:

      alias failed: No such command: mkdircd
      Invalid linemode: devicons; should be filename/metatitle/permissions/file ...
      The error `'doc'` was caused by evaluating the following code:
        `for k,nm in fm.commands['doc'].lst.items(): cmd("map O{0} doc {1}".format(k, nm))`
      alias failed: No such command: rg

Problematic code:

# urc.py
        self.fm.source(custom_conf)
        self.load_commands()
        self.load_plugins()

Should be

        self.load_commands()
        self.load_plugins()
        self.fm.source(custom_conf)
kevinhwang91 commented 2 years ago

Thanks, fixed now.