mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
style(win): luals annotations
This commit is contained in:
parent
a832e7e915
commit
3fdb7f4461
1 changed files with 1 additions and 0 deletions
|
@ -1069,6 +1069,7 @@ function M:dim(parent)
|
|||
---@param ps number parent size
|
||||
local function pos(p, s, ps, border_from, border_to)
|
||||
p = type(p) == "function" and p(self) or p
|
||||
---@cast p number?
|
||||
if self.opts.relative == "cursor" then
|
||||
return p or 0
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue