mirror of
https://github.com/neovim/neovim.git
synced 2026-09-12 09:01:02 +00:00
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
This commit is contained in:
committed by
Lewis Russell
parent
ec65796cea
commit
6a54396db4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user