mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat(health): add better error message with violating file
This commit is contained in:
parent
6c3bda4aca
commit
e0d0f4a490
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ function M.check()
|
||||||
for _, path in ipairs(vim.opt.rtp:get()) do
|
for _, path in ipairs(vim.opt.rtp:get()) do
|
||||||
if path:find(name, 1, true) then
|
if path:find(name, 1, true) then
|
||||||
error("Found paths on the rtp from another plugin manager `" .. name .. "`")
|
error("Found paths on the rtp from another plugin manager `" .. name .. "`")
|
||||||
|
error("Violating file: `".. path .."`")
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue