fix(sidebar): apply windows.wrap setting to code split and input split (#789)
This commit is contained in:
		
							parent
							
								
									9d0e1cd4af
								
							
						
					
					
						commit
						d14b2290d1
					
				@ -1368,7 +1368,9 @@ function Sidebar:create_selected_code()
 | 
				
			|||||||
        winid = self.input.winid,
 | 
					        winid = self.input.winid,
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      buf_options = buf_options,
 | 
					      buf_options = buf_options,
 | 
				
			||||||
      win_options = base_win_options,
 | 
					      win_options = vim.tbl_deep_extend("force", base_win_options, {
 | 
				
			||||||
 | 
					        wrap = Config.windows.wrap,
 | 
				
			||||||
 | 
					      }),
 | 
				
			||||||
      position = "top",
 | 
					      position = "top",
 | 
				
			||||||
      size = {
 | 
					      size = {
 | 
				
			||||||
        height = selected_code_size + 3,
 | 
					        height = selected_code_size + 3,
 | 
				
			||||||
@ -1602,7 +1604,7 @@ function Sidebar:create_input(opts)
 | 
				
			|||||||
      type = "win",
 | 
					      type = "win",
 | 
				
			||||||
      winid = self.result.winid,
 | 
					      winid = self.result.winid,
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    win_options = vim.tbl_deep_extend("force", base_win_options, { signcolumn = "yes" }),
 | 
					    win_options = vim.tbl_deep_extend("force", base_win_options, { signcolumn = "yes", wrap = Config.windows.wrap }),
 | 
				
			||||||
    position = get_position(),
 | 
					    position = get_position(),
 | 
				
			||||||
    size = get_size(),
 | 
					    size = get_size(),
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
@ -1822,7 +1824,9 @@ function Sidebar:render(opts)
 | 
				
			|||||||
      bufhidden = "wipe",
 | 
					      bufhidden = "wipe",
 | 
				
			||||||
      filetype = "Avante",
 | 
					      filetype = "Avante",
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
    win_options = base_win_options,
 | 
					    win_options = vim.tbl_deep_extend("force", base_win_options, {
 | 
				
			||||||
 | 
					      wrap = Config.windows.wrap,
 | 
				
			||||||
 | 
					    }),
 | 
				
			||||||
    size = {
 | 
					    size = {
 | 
				
			||||||
      width = get_width(),
 | 
					      width = get_width(),
 | 
				
			||||||
      height = get_height(),
 | 
					      height = get_height(),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user