mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 13:26:45 +00:00
feat(health): check for paths on the rtp from plugged or packer
This commit is contained in:
parent
b814d87089
commit
9bd1c946d6
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,15 @@ function M.check()
|
||||||
vim.health.report_ok("no existing packages found by other package managers")
|
vim.health.report_ok("no existing packages found by other package managers")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, name in ipairs({ "packer", "plugged", "paq" }) do
|
||||||
|
for _, path in ipairs(vim.opt.rtp:get()) do
|
||||||
|
if path:find(name, 1, true) then
|
||||||
|
vim.health.report_error("Found paths on the rtp from another plugin manager `" .. name .. "`")
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local packer_compiled = vim.fn.stdpath("config") .. "/plugin/packer_compiled.lua"
|
local packer_compiled = vim.fn.stdpath("config") .. "/plugin/packer_compiled.lua"
|
||||||
if vim.loop.fs_stat(packer_compiled) then
|
if vim.loop.fs_stat(packer_compiled) then
|
||||||
vim.health.report_error("please remove the file `" .. packer_compiled .. "`")
|
vim.health.report_error("please remove the file `" .. packer_compiled .. "`")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue