Added option to set zindex of documentation window (#335)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user