mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: plugins no longer need to be installed under site/pack/*/opt
This commit is contained in:
parent
37c7366ab0
commit
dbe2d0942a
6 changed files with 14 additions and 20 deletions
|
@ -102,11 +102,12 @@ function M.load(plugins, reason)
|
|||
end
|
||||
|
||||
---@param plugin LazyPlugin
|
||||
function M.packadd(plugin)
|
||||
---@param force? boolean
|
||||
function M.packadd(plugin, force)
|
||||
-- FIXME: investigate further what else is needed
|
||||
-- vim.cmd.packadd(plugin.name)
|
||||
-- M.source_runtime(plugin, "/after/plugin")
|
||||
if M.init_done then
|
||||
if M.init_done or force then
|
||||
M.source_runtime(plugin, "/plugin")
|
||||
if vim.g.did_load_filetypes == 1 then
|
||||
M.source_runtime(plugin, "/ftdetect")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue