summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/fixtures/lua
AgeCommit message (Collapse)AuthorFiles
2025-03-16fix(checkhealth): handle nested lua/ directory #32918phanium1
Problem: :checkhealth fails if plugin has nested "lua/" directory Solution: trim `{runtimepath}/lua` from fullpath to get subpath (`./**/{health, health/init.lua}`)
2023-04-15refactor: deprecate checkhealth functionsdundargoc7
The following functions are deprecated and will be removed in Nvim v0.11: - health#report_start() - health#report_info() - health#report_ok() - health#report_warn() - health#report_error() - vim.health.report_start() - vim.health.report_info() - vim.health.report_ok() - vim.health.report_warn() - vim.health.report_error() Users should instead use these: - vim.health.start() - vim.health.info() - vim.health.ok() - vim.health.warn() - vim.health.error()
2022-05-31refactor(checkhealth)!: rename to vim.health, move logic to Lua #18720Javier Lopez3
- Complete function: There was lots of unnecessary C code for the complete function, therefore moving it to Lua and use all the plumbing we have in place to retrieve the results. - Moving the module: It's important we keep nvim lua modules name spaced, avoids conflict with plugins, luarocks, etc.
2022-02-09fix(healthcheck): handle empty reportsEdmund Cape1
2021-10-05fix(checkhealth): mitigate issues with duplicate healthchecks #15919Javier Lopez1
* 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
2021-10-04test(runtime/health): cover lua healthchecksJavier López3
- Add tests for lua healthchecks (failure, success and submodules). - Reword some of the test naming for improved logs readability. - Modify render test to accomodate the changes of the health autoload function. - Add test for :checkhealth completion of Lua healtchecks.
2020-12-10runtime: propagate lua parsing errors while using "require"dm1try1