File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ function M.packadd(plugin)
121
121
-- vim.cmd.packadd(plugin.name)
122
122
-- M.source_runtime(plugin, "/after/plugin")
123
123
if M .init_done then
124
- M .source_runtime (plugin .dir , " / plugin" )
124
+ M .source_runtime (plugin .dir , " plugin" )
125
125
if vim .g .did_load_filetypes == 1 then
126
- M .source_runtime (plugin .dir , " / ftdetect" )
126
+ M .source_runtime (plugin .dir , " ftdetect" )
127
127
end
128
- M .source_runtime (plugin .dir , " / after/plugin" )
128
+ M .source_runtime (plugin .dir , " after/plugin" )
129
129
end
130
130
end
131
131
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ M.build = {
10
10
end ,
11
11
run = function (self )
12
12
Loader .load (self .plugin , { task = " build" })
13
- -- when installing during startup, add the package
14
- -- to make sure all runtime files are loaded
15
- Loader .packadd (self .plugin , true )
13
+
14
+ -- we need to source its plugin files before startup,
15
+ -- to make sure the build command has everything available
16
+ Loader .source_runtime (self .plugin .dir , " plugin" )
16
17
17
18
local build = self .plugin .build
18
19
if build then
You can’t perform that action at this time.
0 commit comments