mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 08:15:41 +00:00
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:
@@ -212,6 +212,18 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
ERROR: No healthchecks found.]])
|
||||
end)
|
||||
|
||||
it('nested lua/ directory', function()
|
||||
command('checkhealth lua')
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug.lua: require("test_plug.lua.health").check()
|
||||
|
||||
nested lua/ directory ~
|
||||
- OK everything is ok
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user