mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
feat(plugin): added support for virtual plugins. Closes #1836
This commit is contained in:
parent
3388a26417
commit
ee64abc76b
5 changed files with 14 additions and 5 deletions
|
@ -213,6 +213,8 @@ function M:_rebuild(name)
|
|||
plugin.dir = super.dir
|
||||
if plugin.dir then
|
||||
plugin.dir = Util.norm(plugin.dir)
|
||||
elseif super.virtual then
|
||||
plugin.dir = Util.norm("/dev/null/" .. plugin.name)
|
||||
else
|
||||
if plugin.dev == nil and plugin.url then
|
||||
for _, pattern in ipairs(Config.options.dev.patterns) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue