LinArcX/telescope-command-palette.nvim

Error while selecting category

georgesofianosgr opened this issue · 0 comments

I get this error when I choose a category.

E5108: Error executing lua ...lette.nvim/lua/telescope/_extensions/command_palette.lua:80: attempt to index a nil value stack traceback: ...lette.nvim/lua/telescope/_extensions/command_palette.lua:80: in function 'entry_maker' ...scope.nvim/lua/telescope/finders/async_static_finder.lua:17: in function 'new_table' ...lette.nvim/lua/telescope/_extensions/command_palette.lua:76: in function 'commands' ...lette.nvim/lua/telescope/_extensions/command_palette.lua:156: in function 'run_replace_or_original' ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:338: in function 'execute_keymap' [string ":lua"]:1: in main chunk

Reproduce:
I copied the provided command palette to my telescope config,
then I opened it with ":Telescope command_palette" and pressed enter on "Files"

It seems that on line 80
conf.layout_config[conf.layout_strategy]
produces nil which breaks the code when trying to access width field.

Neovim: 0.8.3
Telescope: Latest(15 Feb)