CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 04:18:48 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/"747dffc74e55b68accdd1fcba15bb5df"
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=xXHqXOxy5DaEOmJ24OnJcf39kbsDRoSApx%2BqJEXJ0MmisbVYInLzkZpJBq3Xq3deECD0WmKakJs%2BK1ehuJ3GEOc%2FpfMFmzWKJ5yKUAwY3LZfOUdPFpDCMjfMunOOcn8HQly9EOGqrPXhFOwOuZ5vT10edJAfqXI%2BzCXSSw7uaY%2F3qLObRGNfEbvtoCtnUXrA4u8A%2BeulO32z7sRQ3dxR3njU9aB4MyN%2FhiCRZld40yj956FisSPrwBDEu3f5xRumteDZrKUb0G4jzUNKD9Ti%2FQ%3D%3D--9QJjnt00F9jEFagO--QbrSDn75ot3zLmSjaJ%2FuwQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.794633519.1753244326; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 04:18:46 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 04:18:46 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D28C:1D735C:32F471:46B483:688062A6
feat(lua): show proper verbose output for lua configuration · neovim/neovim@ebfe083 · GitHub
Copy file name to clipboardExpand all lines: src/nvim/api/private/helpers.c
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit ebfe083
committed
feat(lua): show proper verbose output for lua configuration
`:verbose` didn't work properly with lua configs (For example:
options or keymaps are set from lua, just say that they were set
from lua, doesn't say where they were set at.
This fixes that issue. Now `:verbose` will provide filename and line no
when option/keymap is set from lua.
Changes:
- compiles lua/vim/keymap.lua as vim/keymap.lua
- When souring a lua file current_sctx.sc_sid is set to SID_LUA
- Moved finding scripts SID out of `do_source()` to `get_current_script_id()`.
So it can be reused for lua files.
- Added new function `nlua_get_sctx` that extracts current lua scripts
name and line no with debug library. And creates a sctx for it.
NOTE: This function ignores C functions and blacklist which
currently contains only vim/_meta.lua so vim.o/opt wrappers aren't
targeted.
- Added function `nlua_set_sctx` that changes provided sctx to current
lua scripts sctx if a lua file is being executed.
- Added tests in tests/functional/lua/verbose_spec.lua
- add primary support for additional types (:autocmd, :function, :syntax) to lua verbose
Note: These can't yet be directly set from lua but once that's possible
:verbose should work for them hopefully :D
- add :verbose support for nvim_exec & nvim_command within lua
Currently auto commands/commands/functions ... can only be defined
by nvim_exec/nvim_command this adds support for them. Means if those
Are defined within lua with vim.cmd/nvim_exec :verbose will show their
location . Though note it'll show the line no on which nvim_exec call was made.1 parent e383543 commit ebfe083Copy full SHA for ebfe083
File tree
Expand file treeCollapse file tree
22 files changed
+359
-71
lines changedFilter options
- runtime/doc
- src/nvim
- api
- private
- eval
- lua
- test/functional
- api
- ex_cmds
Expand file treeCollapse file tree
22 files changed
+359
-71
lines changed+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6716 | 6716 |
| |
6717 | 6717 |
| |
6718 | 6718 |
| |
6719 |
| - | |
6720 |
| - | |
| 6719 | + | |
| 6720 | + | |
6721 | 6721 |
| |
6722 | 6722 |
| |
6723 | 6723 |
| |
|
+5-4Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
468 | 469 |
| |
469 | 470 |
| |
470 | 471 |
| |
|
+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
| |||
338 | 339 |
| |
339 | 340 |
| |
340 | 341 |
| |
| 342 | + | |
341 | 343 |
| |
342 | 344 |
| |
343 | 345 |
| |
| |||
347 | 349 |
| |
348 | 350 |
| |
349 | 351 |
| |
| 352 | + | |
350 | 353 |
| |
351 | 354 |
| |
352 | 355 |
| |
|
+6-5Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
953 | 953 |
| |
954 | 954 |
| |
955 | 955 |
| |
956 |
| - | |
957 |
| - | |
| 956 | + | |
| 957 | + | |
958 | 958 |
| |
959 | 959 |
| |
960 |
| - | |
| 960 | + | |
961 | 961 |
| |
962 | 962 |
| |
963 | 963 |
| |
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
967 | 967 |
| |
968 |
| - | |
| 968 | + | |
| 969 | + | |
969 | 970 |
| |
970 | 971 |
| |
971 | 972 |
| |
972 |
| - | |
| 973 | + | |
973 | 974 |
| |
974 | 975 |
| |
975 | 976 |
| |
|
+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
src/nvim/api/private/helpers.c
Copy file name to clipboardExpand all lines: src/nvim/api/private/helpers.c+22-2Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
585 | 585 |
| |
586 | 586 |
| |
587 | 587 |
| |
588 |
| - | |
589 |
| - | |
| 588 | + | |
| 589 | + | |
590 | 590 |
| |
591 | 591 |
| |
592 | 592 |
| |
| |||
599 | 599 |
| |
600 | 600 |
| |
601 | 601 |
| |
| 602 | + | |
| 603 | + | |
602 | 604 |
| |
603 | 605 |
| |
604 | 606 |
| |
| |||
710 | 712 |
| |
711 | 713 |
| |
712 | 714 |
| |
| 715 | + | |
713 | 716 |
| |
714 | 717 |
| |
715 | 718 |
| |
| |||
1622 | 1625 |
| |
1623 | 1626 |
| |
1624 | 1627 |
| |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + |
+6-4Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1586 | 1586 |
| |
1587 | 1587 |
| |
1588 | 1588 |
| |
| 1589 | + | |
1589 | 1590 |
| |
1590 | 1591 |
| |
1591 | 1592 |
| |
| |||
1597 | 1598 |
| |
1598 | 1599 |
| |
1599 | 1600 |
| |
1600 |
| - | |
| 1601 | + | |
| 1602 | + | |
1601 | 1603 |
| |
1602 | 1604 |
| |
1603 |
| - | |
| 1605 | + | |
1604 | 1606 |
| |
1605 | 1607 |
| |
1606 | 1608 |
| |
1607 | 1609 |
| |
1608 | 1610 |
| |
1609 | 1611 |
| |
1610 | 1612 |
| |
1611 |
| - | |
| 1613 | + | |
1612 | 1614 |
| |
1613 | 1615 |
| |
1614 |
| - | |
| 1616 | + | |
1615 | 1617 |
| |
1616 | 1618 |
| |
1617 | 1619 |
| |
|
+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 |
| |
56 | 59 |
| |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
| 63 | + | |
| 64 | + | |
60 | 65 |
| |
61 | 66 |
| |
62 | 67 |
| |
|
+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1086 | 1086 |
| |
1087 | 1087 |
| |
1088 | 1088 |
| |
| 1089 | + | |
1089 | 1090 |
| |
1090 | 1091 |
| |
1091 | 1092 |
| |
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
259 |
| - | |
| 259 | + | |
| 260 | + | |
260 | 261 |
| |
261 | 262 |
| |
262 | 263 |
| |
|
You can’t perform that action at this time.
0 commit comments