Support documentation window scrolling

This commit is contained in:
hrsh7th
2021-08-09 19:34:45 +09:00
parent 421720641b
commit a11ddccb33
6 changed files with 62 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ cmp.TriggerEvent = {}
cmp.TriggerEvent.InsertEnter = 'InsertEnter'
cmp.TriggerEvent.TextChanged = 'TextChanged'
---@alias cmp.ScrollDirection "'up'" | "'down'"
cmp.ScrollDirection = {}
cmp.ScrollDirection.Up = 'up'
cmp.ScrollDirection.Down = 'down'
---@class cmp.ContextOption
---@field public reason cmp.ContextReason|nil
@@ -59,6 +64,7 @@ cmp.TriggerEvent.TextChanged = 'TextChanged'
---@field public winhighlight string
---@field public maxwidth number|nil
---@field public maxheight number|nil
---@field public mapping table<string, cmp.ScrollDirection>
---@class cmp.ConfirmationConfig
---@field public default_behavior cmp.ConfirmBehavior