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

Error detected while processing function <SNR>31_Cheatsheet:

Open silveste opened this issue 2 years ago • 3 comments

Hi,

I really love this plugin, however recently I came across with one issue that I don't know how to solve.

When I try to open the cheatsheet I get this error:

Error detected while processing function <SNR>31_Cheatsheet:
line    5:
E5108: Error executing lua .../start/cheatsheet.nvim/lua/cheatsheet/telescope/init.lua:43: attempt to index a nil value
stack traceback:
	.../start/cheatsheet.nvim/lua/cheatsheet/telescope/init.lua:43: in function 'entry_maker'
	...scope.nvim/lua/telescope/finders/async_static_finder.lua:17: in function 'new_table'
	.../start/cheatsheet.nvim/lua/cheatsheet/telescope/init.lua:26: in function 'pick_cheat'
	...ack/packer/start/cheatsheet.nvim/lua/cheatsheet/init.lua:186: in function 'show_cheatsheet_telescope'
	...ack/packer/start/cheatsheet.nvim/lua/cheatsheet/init.lua:193: in function 'show_cheatsheet'
	[string ":lua"]:1: in main chunk

In order to replicate the error you need to setup flex as a default layout strategy

require('telescope').setup{
    defaults = {
    	    layout_strategy = "flex",
	},
}

Any insights about this issue would be appreciate it thank you in advance!

silveste avatar Jul 04 '22 15:07 silveste

Ditto. I have the same issue. Breaks with "flex".

zaatas avatar Jul 19 '22 22:07 zaatas

Same problem here. By the way we can't configure specific layout_config for this extension.

Spo0on avatar Dec 15 '22 11:12 Spo0on

Same here. @sudormrfbin any update?

duraki avatar Aug 06 '23 19:08 duraki