diff options
author | Javier Lopez <graulopezjavier@gmail.com> | 2021-10-05 17:37:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 15:37:39 -0700 |
commit | acd5e831b6294e54b12c09983bee3da89c0f183a (patch) | |
tree | b8817b289ab051f4df080282e414399d2a45d4c7 /test/functional/fixtures/lua | |
parent | 6a930a9dc4ddf190b528c945f19bc0a0bad2cc29 (diff) | |
download | rneovim-acd5e831b6294e54b12c09983bee3da89c0f183a.tar.gz rneovim-acd5e831b6294e54b12c09983bee3da89c0f183a.tar.bz2 rneovim-acd5e831b6294e54b12c09983bee3da89c0f183a.zip |
fix(checkhealth): mitigate issues with duplicate healthchecks #15919
* fix(runtime/health): mitigate issues with duplicate healthchecks
Previously if a healthcheck was found as Lua and Vim it was executed
both times.
This new implementations prefers Lua, therefore if two are found It only
runs the Lua one, this way a plugin can mantain both implementations the
Lua one with the method `check()` and the autoload function `#check()`
(for none HEAD nvim versions).
**Note: This will require plugins to use `check()` as the function name,
since the autoload function that wraps the lua implementation won't be
called**
* docs(health): use spaces and don't overuse backtics
followup to #15259
Diffstat (limited to 'test/functional/fixtures/lua')
-rw-r--r-- | test/functional/fixtures/lua/test_plug/autoload/health/test_plug.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/fixtures/lua/test_plug/autoload/health/test_plug.vim b/test/functional/fixtures/lua/test_plug/autoload/health/test_plug.vim new file mode 100644 index 0000000000..de05f56e9e --- /dev/null +++ b/test/functional/fixtures/lua/test_plug/autoload/health/test_plug.vim @@ -0,0 +1,3 @@ +function! health#success1#check() + call health#report_start("If you see this I'm broken") +endfunction |