From f5dd30948e67b0bfbfe0f1023a9b0c8a0b20b486 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Sun, 16 Mar 2025 20:49:05 +0800 Subject: 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}`) --- test/functional/fixtures/lua/test_plug/lua/health.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/functional/fixtures/lua/test_plug/lua/health.lua (limited to 'test/functional/fixtures/lua') diff --git a/test/functional/fixtures/lua/test_plug/lua/health.lua b/test/functional/fixtures/lua/test_plug/lua/health.lua new file mode 100644 index 0000000000..75164f37ab --- /dev/null +++ b/test/functional/fixtures/lua/test_plug/lua/health.lua @@ -0,0 +1,8 @@ +local M = {} + +M.check = function() + vim.health.start('nested lua/ directory') + vim.health.ok('everything is ok') +end + +return M -- cgit