File tree 2 files changed +8
-3
lines changed
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.
26
26
27
27
## List of Neovim Features Required:
28
28
29
- - [ ] Add Z-index for floating windows
30
- - [ ] When complete, we can add ` zindex ` parameter
31
29
- [ ] Key handlers (used for ` popup_filter ` )
32
30
- [ ] scrollbar for floating windows
33
31
- [ ] scrollbar
@@ -80,6 +78,7 @@ Suported Features:
80
78
- [x] time
81
79
- [x] title
82
80
- [x] wrap
81
+ - [x] zindex
83
82
84
83
## All known unimplemented vim features at the moment
85
84
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ function popup.create(what, vim_options)
89
89
end
90
90
91
91
local option_defaults = {
92
- posinvert = true
92
+ posinvert = true ,
93
+ zindex = 50 ,
93
94
}
94
95
95
96
local win_opts = {}
@@ -184,6 +185,11 @@ function popup.create(what, vim_options)
184
185
-- textpropwin
185
186
-- textpropid
186
187
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
+
187
193
local win_id
188
194
if vim_options .hidden then
189
195
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