diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-07 17:04:29 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-08 16:50:53 +0100 |
| commit | 6a54396db46c97529ce89ffceb78a2842a7573c5 (patch) | |
| tree | 64cc604501c432b6e073f204c746ecbc051c138a /runtime/lua/vim/pack.lua | |
| parent | ec65796cead84071603cd4814eacfa7af3faf764 (diff) | |
| download | rneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.tar.gz rneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.tar.bz2 rneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.zip | |
build: enable more EmmyLua checks
- call-non-callable
- missing-fields
- redefined-label
- redefined-local
- undefined-field
- unreachable-code
Promote redefined-local and unreachable-code to warnings.
Fix DOS line-ending handling for multiline semantic tokens, and support
intersection types in the help parser.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/pack.lua')
| -rw-r--r-- | runtime/lua/vim/pack.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua index 91126b9fb8..754224ec31 100644 --- a/runtime/lua/vim/pack.lua +++ b/runtime/lua/vim/pack.lua @@ -953,6 +953,7 @@ local function pack_add(plug, load) active_plugins[plug.path] = { plug = plug, id = n_active_plugins } if vim.is_callable(load) then + ---@cast load -boolean load({ spec = vim.deepcopy(plug.spec), path = plug.path }) return end @@ -1389,6 +1390,7 @@ end --- @class vim.pack.keyset.update --- @inlinedoc +--- @field package _ex? boolean --- @field force? boolean Whether to skip confirmation and make updates immediately. Default `false`. --- --- @field offline? boolean Whether to skip downloading new updates. Default: `false`. @@ -1520,6 +1522,7 @@ end --- @class vim.pack.keyset.del --- @inlinedoc +--- @field package _ex? boolean --- @field force? boolean Whether to allow deleting an active plugin. Default `false`. --- Remove plugins from disk |