mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(checkhealth): failed if 'lua' in plugin name
(cherry picked from commit 4c9f3689a1
)
This commit is contained in:
committed by
github-actions[bot]
parent
938a600847
commit
a8eddf1eb1
@ -13,7 +13,7 @@ local function filepath_to_healthcheck(path)
|
||||
func = 'health#' .. name .. '#check'
|
||||
filetype = 'v'
|
||||
else
|
||||
local subpath = path:gsub('.*lua/', '')
|
||||
local subpath = path:gsub('.*/lua/', '')
|
||||
if vim.fs.basename(subpath) == 'health.lua' then
|
||||
-- */health.lua
|
||||
name = assert(vim.fs.dirname(subpath))
|
||||
|
Reference in New Issue
Block a user