@@ -111,7 +111,7 @@ opts = function(_, opts)
111111 winopts = {
112112 layout = " vertical" ,
113113 -- height is number of items minus 15 lines for the preview, with a max of 80% screen height
114- height = math.floor (math.min (vim .o .lines * 0.8 - 16 , # items + 2 ) + 0.5 ) + 16 ,
114+ height = math.floor (math.min (vim .o .lines * 0.8 - 16 , # items + 4 ) + 0.5 ) + 16 ,
115115 width = 0.5 ,
116116 preview = not vim .tbl_isempty (vim .lsp .get_clients ({ bufnr = 0 , name = " vtsls" })) and {
117117 layout = " vertical" ,
@@ -126,7 +126,7 @@ opts = function(_, opts)
126126 winopts = {
127127 width = 0.5 ,
128128 -- height is number of items, with a max of 80% screen height
129- height = math.floor (math.min (vim .o .lines * 0.8 , # items + 2 ) + 0.5 ),
129+ height = math.floor (math.min (vim .o .lines * 0.8 , # items + 4 ) + 0.5 ),
130130 },
131131 })
132132 end ,
256256 winopts = {
257257 layout = " vertical" ,
258258 -- height is number of items minus 15 lines for the preview, with a max of 80% screen height
259- height = math.floor (math.min (vim .o .lines * 0.8 - 16 , # items + 2 ) + 0.5 ) + 16 ,
259+ height = math.floor (math.min (vim .o .lines * 0.8 - 16 , # items + 4 ) + 0.5 ) + 16 ,
260260 width = 0.5 ,
261261 preview = not vim .tbl_isempty (vim .lsp .get_clients ({ bufnr = 0 , name = " vtsls" })) and {
262262 layout = " vertical" ,
271271 winopts = {
272272 width = 0.5 ,
273273 -- height is number of items, with a max of 80% screen height
274- height = math.floor (math.min (vim .o .lines * 0.8 , # items + 2 ) + 0.5 ),
274+ height = math.floor (math.min (vim .o .lines * 0.8 , # items + 4 ) + 0.5 ),
275275 },
276276 })
277277 end ,
0 commit comments