mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +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:
8
test/functional/fixtures/lua/test_plug/lua/health.lua
Normal file
8
test/functional/fixtures/lua/test_plug/lua/health.lua
Normal 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
|
Reference in New Issue
Block a user