mirror of
https://github.com/neovim/neovim
synced 2025-07-27 17:02:14 +00:00
fix(checkhealth): failed if 'lua' in plugin name
This commit is contained in:
@ -118,7 +118,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 = vim.fs.dirname(subpath)
|
||||
|
Reference in New Issue
Block a user