feat: plugins no longer need to be installed under site/pack/*/opt

This commit is contained in:
Folke Lemaitre 2022-12-03 15:48:06 +01:00
parent 37c7366ab0
commit dbe2d0942a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 14 additions and 20 deletions

View file

@ -40,8 +40,8 @@ function M.try(fn, msg)
end
if info.what ~= "C" and not info.source:find("lazy.nvim") then
local source = info.source:sub(2)
if source:find(Config.root, 1, true) == 1 then
source = source:sub(#Config.root + 1)
if source:find(Config.options.root, 1, true) == 1 then
source = source:sub(#Config.options.root + 1)
end
source = vim.fn.fnamemodify(source, ":p:~:.")
local line = " - " .. source .. ":" .. info.currentline