From 6a54396db46c97529ce89ffceb78a2842a7573c5 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 7 Sep 2026 17:04:29 +0100 Subject: 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 --- runtime/lua/vim/pack.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/lua/vim/pack.lua') 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 -- cgit