octo.nvim icon indicating copy to clipboard operation
octo.nvim copied to clipboard

"Unsupported layout_config key for the center strategy: preview_width" when adding label

Open PhilippFeO opened this issue 7 months ago • 0 comments

Issue Description

Type: bug report

Describe what happened (or what feature you want)

When I want to add a label via <Leader>la to a freshly created issue (Octo issue create), I receive the following message (highlighted in red):

Unsupported layout_config key for the center strategy: preview_width                                                                                            
{                                                                                                                                                               
  bottom_pane = {                                                                                                                                               
    height = 15,                                                                                                                                                
    preview_cutoff = 1,                                                                                                                                         
    prompt_position = "top"                                                                                                                                     
  },                                                                                                                                                            
  center = {                                                                                                                                                    
    height = 15,                                                                                                                                                
    preview_cutoff = 1,                                                                                                                                         
    prompt_position = "top",                                                                                                                                    
    width = 0.4                                                                                                                                                 
  },                                                                                                                                                            
  cursor = {                                                                                                                                                    
    height = 15,                                                                                                                                                
    preview_cutoff = 1,                                                                                                                                         
    width = 0.4                                                                                                                                                 
  },                                                                                                                                                            
  height = 15,                                                                                                                                                  
  horizontal = {                                                                                                                                                
    height = 15,                                                                                                                                                
    preview_cutoff = 1,                                                                                                                                         
    prompt_position = "top",                                                                                                                                    
    width = 0.4                                                                                                                                                 
  },                                                                                                                                                            
  preview_cutoff = 1,                                                                                                                                           
  preview_width = 0.5,                                                                                                                                          
  prompt_position = "top",                                                                                                                                      
  vertical = {                                                                                                                                                  
    height = 15,                                                                                                                                                
    preview_cutoff = 1,                                                                                                                                         
    prompt_position = "top",                                                                                                                                    
    width = 0.4                                                                                                                                                 
  },                                                                                                                                                            
  width = 0.4                                                                                                                                                   
}

Nevertheless, I can add the label in the following. (I like the format of the labels, well done.)

The same happens when assigning an Assignee by typing <Leader>aa.

Describe what you expected to happen

Adding a label without the above message.

How to reproduce it (as minimally and precisely as possible)

  1. Octo issue create
  2. <Leader>la
  3. or <Leader>aa

Tell us your environment

Nvim v0.10, Linux 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux. I can also link my complete config If you like

Anything else we need to know?

It happened right from the beginning. I haven't change any settings of octo.nvim.

-- lazy.nvim
return {
  'pwntester/octo.nvim',
  dependencies = {
    'nvim-lua/plenary.nvim',
    'nvim-telescope/telescope.nvim',
    -- OR 'ibhagwan/fzf-lua',
    'nvim-tree/nvim-web-devicons',
  },
  opts = {},
}

PhilippFeO avatar Jul 12 '24 20:07 PhilippFeO