mirror of
https://github.com/neovim/neovim
synced 2025-07-29 01:41:52 +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'
|
func = 'health#' .. name .. '#check'
|
||||||
filetype = 'v'
|
filetype = 'v'
|
||||||
else
|
else
|
||||||
local subpath = path:gsub('.*lua/', '')
|
local subpath = path:gsub('.*/lua/', '')
|
||||||
if vim.fs.basename(subpath) == 'health.lua' then
|
if vim.fs.basename(subpath) == 'health.lua' then
|
||||||
-- */health.lua
|
-- */health.lua
|
||||||
name = vim.fs.dirname(subpath)
|
name = vim.fs.dirname(subpath)
|
||||||
|
Reference in New Issue
Block a user