mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: lazy setup with either a plugins module, or a plugins spec
This commit is contained in:
parent
f0894be69d
commit
af8b8e128e
8 changed files with 54 additions and 53 deletions
|
@ -40,8 +40,8 @@ function M.try(fn, msg)
|
|||
end
|
||||
if info.what == "Lua" and not info.source:find("lazy.nvim") then
|
||||
local source = info.source:sub(2)
|
||||
if source:find(Config.paths.opt, 1, true) == 1 then
|
||||
source = source:sub(#Config.paths.opt + 1)
|
||||
if source:find(Config.root, 1, true) == 1 then
|
||||
source = source:sub(#Config.root + 1)
|
||||
end
|
||||
source = vim.fn.fnamemodify(source, ":p:~:.")
|
||||
local line = " - " .. source .. ":" .. info.currentline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue