aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack.lua
diff options
context:
space:
mode:
authorAditya Malik <102025295+alarcritty@users.noreply.github.com>2026-04-18 22:47:45 +0530
committerGitHub <noreply@github.com>2026-04-18 13:17:45 -0400
commit2cb240319b61eb98abcaae08b3c0a6d98fce53ac (patch)
treee7a694ca3ae1a9d57f6e9de8cc9e3ce2c6c58247 /runtime/lua/vim/pack.lua
parent3a4cc5db0b8eb1d825a2a57d177853e1b4c90e28 (diff)
downloadrneovim-2cb240319b61eb98abcaae08b3c0a6d98fce53ac.tar.gz
rneovim-2cb240319b61eb98abcaae08b3c0a6d98fce53ac.tar.bz2
rneovim-2cb240319b61eb98abcaae08b3c0a6d98fce53ac.zip
docs(events): Lua types for autocmd event-data #38518
Problem: No LuaLS types for event-data fields (ev.data). Types are only documented ad hoc in scattered locations. Solution: Add runtime/lua/vim/_meta/events.lua defining vim.event.<name>.data classes for events that provide ev.data. Reference the types from each event's help in autocmd.txt, lsp.txt, and pack.txt.
Diffstat (limited to 'runtime/lua/vim/pack.lua')
-rw-r--r--runtime/lua/vim/pack.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua
index 60b1680f7f..ad48d6ce7d 100644
--- a/runtime/lua/vim/pack.lua
+++ b/runtime/lua/vim/pack.lua
@@ -175,6 +175,8 @@
---- `spec` - plugin's specification with defaults made explicit.
---- `path` - full path to plugin's directory.
---
+---See `vim.event.packchanged.data` and `vim.event.packchangedpre.data`.
+---
--- These events can be used to execute plugin hooks. For example:
---```lua
---local hooks = function(ev)