tamago324 / LeaderF-filer

📂 LeaderF file explorer
Apache License 2.0
39 stars 5 forks source link

Support Vim8 native plugin loading using :packload #42

Closed einthusan closed 3 years ago

einthusan commented 3 years ago

When I put these 2 packages in my "opt" directory, and load the plugins. LeaderF works, however, LeaderF filer does not work.

e.g.

packadd LeaderF
packed LeaderF_Filer

the error output is the following ... when I run the command :LeaderF filer

:Leaderf filer            Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy[1]..function leaderf#Any#start[4]..leaderf#LfPy:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/einthusan/.vim/pack/packages/opt/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 815, in start
    the_args.start(arguments, *args, **kwargs)
  File "/Users/einthusan/.vim/pack/packages/opt/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 721, in _default_action
    manager_id = lfFunction(lfEval("g:Lf_PythonExtensions['%s'].manager_id" % category))()
vim.error: Vim(py3):vim.error: Vim:E117: Unknown function: leaderf#Filer#InsertMap
Error detected while processing function leaderf#Any#start:
line    4:
E171: Missing :endif  
einthusan commented 3 years ago

By the way, running :LeaderfFiler command gives a different error. Once I run this command, even the previous command of :Leaderf filer returns the same new error below. It seems the loading mechanism behaves a little better using :LeaderfFiler.

:LeaderfFiler           Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/einthusan/.vim/pack/packages/opt/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 815, in start
    the_args.start(arguments, *args, **kwargs)
  File "/Users/einthusan/.vim/pack/packages/opt/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 721, in _default_action
    manager_id = lfFunction(lfEval("g:Lf_PythonExtensions['%s'].manager_id" % category))()
vim.error: Vim:E117: Unknown function: leaderf#Filer#managerId