mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(checkhealth): failed if 'lua' in plugin name
This commit is contained in:
parent
a9c12d4c29
commit
4c9f3689a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user