Added option to set zindex of documentation window (#335)

This commit is contained in:
Xuyuan Pang
2021-10-12 12:33:46 +08:00
committed by GitHub
parent cfc211e395
commit 2a8dc6208a
3 changed files with 6 additions and 0 deletions

View File

@@ -351,6 +351,10 @@ The documentation window's max width.
The documentation window's max height.
#### documentation.zindex (type: number)
The documentation window's zindex.
#### formatting.format (type: fun(entry: cmp.Entry, vim_item: vim.CompletedItem): vim.CompletedItem)
A function to customize completion menu.

View File

@@ -80,6 +80,7 @@ cmp.PreselectMode.None = 'none'
---@field public winhighlight string
---@field public maxwidth number|nil
---@field public maxheight number|nil
---@field public zindex number|nil
---@class cmp.ConfirmationConfig
---@field public default_behavior cmp.ConfirmBehavior

View File

@@ -89,6 +89,7 @@ docs_view.open = function(self, e, view)
row = view.row,
col = col,
border = documentation.border,
zindex = documentation.zindex,
})
if left and self.window:has_scrollbar() then
self.window.style.col = self.window.style.col - 1