mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix: source plugin files for plugins that want to run a build script during startup
This commit is contained in:
parent
93d30722a0
commit
3ed24baeb0
2 changed files with 7 additions and 6 deletions
|
@ -121,11 +121,11 @@ function M.packadd(plugin)
|
|||
-- vim.cmd.packadd(plugin.name)
|
||||
-- M.source_runtime(plugin, "/after/plugin")
|
||||
if M.init_done then
|
||||
M.source_runtime(plugin.dir, "/plugin")
|
||||
M.source_runtime(plugin.dir, "plugin")
|
||||
if vim.g.did_load_filetypes == 1 then
|
||||
M.source_runtime(plugin.dir, "/ftdetect")
|
||||
M.source_runtime(plugin.dir, "ftdetect")
|
||||
end
|
||||
M.source_runtime(plugin.dir, "/after/plugin")
|
||||
M.source_runtime(plugin.dir, "after/plugin")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue