fix(checkhealth): handle nested lua/ directory #32918

Problem: :checkhealth fails if plugin has nested "lua/" directory

Solution: trim `{runtimepath}/lua` from fullpath to get subpath
(`./**/{health, health/init.lua}`)
This commit is contained in:
phanium
2025-03-16 20:49:05 +08:00
committed by GitHub
parent 7aae3f98de
commit f5dd30948e
3 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
local M = {}
M.check = function()
vim.health.start('nested lua/ directory')
vim.health.ok('everything is ok')
end
return M