CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 08:54:44 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neovim/neovim.git
etag: W/"02b53f62230306a6122345b854b09689"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Qkv67uXTrw%2Bm0SY8u5xKG3MQ3RnR2aaKP6BWbv6YfWEX34IHu0vddfRVVrFzPxUPVXbHx84G3xKbrIC5mjqY3kVDbGDSpDNj4qm83Tdj3RHCFPszJcOsGo%2F2Im9kRAW%2FDExNLNyFnbOuUBRy5Y1crgnALpryaNJVYR8VgHlb3azaOp1lO3ONYGAFFjkan%2F8MSBCSyqPQHyMnpnJCjFlJNJD3C5Yr%2FO9mNhVT0uhXjYqE5D4hNBj8bT5B4OPkL6ieivB85q%2FMZvVvRk8%2BezCjsQ%3D%3D--WUL8FKr5nxwcBI6c--1xKEpoSGyY5YGfGtWIr79Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.207555327.1753606483; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 08:54:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 08:54:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C87A:1AFF47:C747FA:1085E7C:6885E953
feat(runtime/health): support lua healthchecks · neovim/neovim@9249dcd · GitHub
Copy file name to clipboardExpand all lines: runtime/autoload/health.vim
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit 9249dcd
committed
feat(runtime/health): support lua healthchecks
- Refactor health.vim to discover lua healthcheck in the runtime
directories lua/**/health{/init}.lua
- Support healthchecks for lua submodules e.g :checkhealth vim.lsp and
also support wildcard "*" at the end for all submodules
:checkhealth vim*
- Refactor health.vim to use variable scope instead of output capturing
- Create health.lua module to wrap report functions and future
extensibility.
- Move away from searching just in the runtimepath, use
`nvim_get_runtime_file` due to #15632
Example:
Plugin linter in rtp can declare it's checkhealts in lua module
`lua/linter/health{/init}.lua` that returns a table with a method
"check" that when executed calls the report functions provided by the
builtin lua module require("health").
The plugin also has a submodule `/lua/linter/providers` in which it
defines `/lua/linter/providers/health{/init}.lua`
This plugin healthcheck can now be run by the ex command:
`:checkhealth linter linter.providers`
Also calling all submodules can be done by:
`:checkhealth linter*
And "linter" and "linter.provider" would be discovered when:
`:checkhealth`1 parent c4d581d commit 9249dcdCopy full SHA for 9249dcd
File tree
Expand file treeCollapse file tree
2 files changed
+86
-40
lines changedFilter options
- runtime
- autoload
- lua
Expand file treeCollapse file tree
2 files changed
+86
-40
lines changedruntime/autoload/health.vim
Copy file name to clipboardExpand all lines: runtime/autoload/health.vim+63-40Lines changed: 63 additions & 40 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
| 29 | + | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
| 45 | + | |
| 46 | + | |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 |
| |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 |
| |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 |
| |
64 | 68 |
| |
65 | 69 |
| |
| |||
71 | 75 |
| |
72 | 76 |
| |
73 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 |
| |
75 | 83 |
| |
76 |
| - | |
| 84 | + | |
77 | 85 |
| |
78 | 86 |
| |
79 | 87 |
| |
| |||
119 | 127 |
| |
120 | 128 |
| |
121 | 129 |
| |
122 |
| - | |
| 130 | + | |
123 | 131 |
| |
124 | 132 |
| |
125 | 133 |
| |
126 | 134 |
| |
127 |
| - | |
| 135 | + | |
128 | 136 |
| |
129 | 137 |
| |
130 | 138 |
| |
131 | 139 |
| |
132 | 140 |
| |
133 | 141 |
| |
134 |
| - | |
| 142 | + | |
135 | 143 |
| |
136 |
| - | |
| 144 | + | |
137 | 145 |
| |
138 | 146 |
| |
139 | 147 |
| |
140 | 148 |
| |
141 | 149 |
| |
142 | 150 |
| |
143 | 151 |
| |
144 |
| - | |
| 152 | + | |
145 | 153 |
| |
146 |
| - | |
| 154 | + | |
147 | 155 |
| |
148 | 156 |
| |
149 | 157 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
153 | 173 |
| |
154 | 174 |
| |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 175 | + | |
| 176 | + | |
159 | 177 |
| |
160 | 178 |
| |
161 |
| - | |
162 |
| - | |
| 179 | + | |
| 180 | + | |
163 | 181 |
| |
164 |
| - | |
165 |
| - | |
| 182 | + | |
| 183 | + | |
166 | 184 |
| |
167 | 185 |
| |
168 |
| - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
169 | 198 |
| |
170 | 199 |
| |
171 | 200 |
| |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
|
runtime/lua/health.lua
Copy file name to clipboard+23Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + |
You can’t perform that action at this time.
0 commit comments