This commit is contained in:
staticssleever668 2025-02-26 03:01:37 +00:00 committed by GitHub
commit d5610a08c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,6 +112,11 @@ function M:_add(keys)
local lhs = keys.lhs local lhs = keys.lhs
local opts = M.opts(keys) local opts = M.opts(keys)
local rhs = keys.rhs -- Work-around lua-language-server type inference.
-- Pass string rhs to desc to make it visible before loading the plugin, or we will only see file path to closure
-- below.
opts.desc = opts.desc or type(rhs) == "string" and rhs or nil
---@param buf? number ---@param buf? number
local function add(buf) local function add(buf)
if M.is_nop(keys) then if M.is_nop(keys) then