Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PhilippFeO opened this issue Jul 12, 2024 · 0 comments

Comments

@PhilippFeO
Copy link

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 = {},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant