File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ this and wrap it with C functions to make the APIs compatible.
2626
2727## List of Neovim Features Required:
2828
29- - [ ] Add Z-index for floating windows
30- - [ ] When complete, we can add ` zindex ` parameter
3129- [ ] Key handlers (used for ` popup_filter ` )
3230- [ ] scrollbar for floating windows
3331 - [ ] scrollbar
@@ -80,6 +78,7 @@ Suported Features:
8078 - [x] time
8179 - [x] title
8280 - [x] wrap
81+ - [x] zindex
8382
8483## All known unimplemented vim features at the moment
8584
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ function popup.create(what, vim_options)
8989 end
9090
9191 local option_defaults = {
92- posinvert = true
92+ posinvert = true ,
93+ zindex = 50 ,
9394 }
9495
9596 local win_opts = {}
@@ -184,6 +185,11 @@ function popup.create(what, vim_options)
184185 -- textpropwin
185186 -- textpropid
186187
188+ -- zindex, Priority for the popup, default 50. Minimum value is
189+ -- , 1, maximum value is 32000.
190+ local zindex = dict_default (vim_options , ' zindex' , option_defaults )
191+ win_opts .zindex = utils .bounded (zindex , 1 , 32000 )
192+
187193 local win_id
188194 if vim_options .hidden then
189195 assert (false , " I have not implemented this yet and don't know how" )
You can’t perform that action at this time.
0 commit comments