mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor(config): package_path => packpath
This commit is contained in:
parent
fb84c081b0
commit
2fa5be3779
3 changed files with 6 additions and 6 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.options.package_path, 1, true) == 1 then
|
||||
source = source:sub(#Config.options.package_path + 1):gsub("^/opt/", ""):gsub("^/start/", "")
|
||||
if source:find(Config.options.packpath, 1, true) == 1 then
|
||||
source = source:sub(#Config.options.packpath + 1):gsub("^/opt/", ""):gsub("^/start/", "")
|
||||
end
|
||||
source = vim.fn.fnamemodify(source, ":p:~:.")
|
||||
local line = " - " .. source .. ":" .. info.currentline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue