Invalid expression in s:load?
Closed this issue · 2 comments
bearcatsandor commented
I really like the modular aspects of your config, and i'm trying ti duplicate it. Right off the bat i'm getting an error.
Error detected while processing function <SNR>2_load:
line 1:
E117: Unknown function: path#Join
E15: Invalid expression: a:file[0] == '/' ? a:file : path#Join([$vim, a:file])
line 2:
E121: Undefined variable: file
E116: Invalid arguments for function fnameescape
line 1:
E117: Unknown function: path#Join
E15: Invalid expression: a:file[0] == '/' ? a:file : path#Join([$vim, a:file])
line 2:
E121: Undefined variable: file
I'm on nvim 0.4.4. Isn't path a built in, or do you have an include file somewhere that i'm missing?
Thanks.
romgrk commented
vim-maktaba's source from a few years ago is included in my config. You can probably replace those by join([...], '/')
, it should work even on windows.
bearcatsandor commented
I got it working! Thank you.