mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	fix(lsp): open_floating_preview() zindex relative to current window #31886
Problem:  open_floating_preview() may be hidden behind current window if
          that is floating and has a higher zindex.
Solution: Open floating preview with zindex higher than current window.
			
			
This commit is contained in:
		@@ -883,7 +883,7 @@ function M.make_floating_popup_options(width, height, opts)
 | 
			
		||||
    style = 'minimal',
 | 
			
		||||
    width = width,
 | 
			
		||||
    border = opts.border or default_border,
 | 
			
		||||
    zindex = opts.zindex or 50,
 | 
			
		||||
    zindex = opts.zindex or (api.nvim_win_get_config(0).zindex or 49) + 1,
 | 
			
		||||
    title = title,
 | 
			
		||||
    title_pos = title_pos,
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user