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
|
@ -10,7 +10,7 @@ M.clean = {
|
|||
end,
|
||||
run = function(self)
|
||||
local dir = self.plugin.dir:gsub("/+$", "")
|
||||
assert(dir:find(Config.root, 1, true) == 1, self.plugin.dir .. " should be under packpath!")
|
||||
assert(dir:find(Config.options.root, 1, true) == 1, self.plugin.dir .. " should be under packpath!")
|
||||
|
||||
local stat = vim.loop.fs_lstat(dir)
|
||||
assert(stat.type == "directory", self.plugin.dir .. " should be a directory!")
|
||||
|
|
|
@ -10,6 +10,9 @@ M.build = {
|
|||
end,
|
||||
run = function(self)
|
||||
Loader.load(self.plugin, { task = "build" })
|
||||
-- when installing during startup, add the package
|
||||
-- to make sure all runtime files are loaded
|
||||
Loader.packadd(self.plugin, true)
|
||||
|
||||
local build = self.plugin.build
|
||||
if build then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue