sudormrfbin / cheatsheet.nvim

A cheatsheet plugin for neovim with bundled cheatsheets for the editor, multiple vim plugins, nerd-fonts, regex, etc. with a Telescope fuzzy finder interface!
658 stars 24 forks source link

Error detected while processing function <SNR>31_Cheatsheet: #25

Open silveste opened 2 years ago

silveste commented 2 years ago

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!

zaatas commented 2 years ago

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

Spo0on commented 1 year ago

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

duraki commented 1 year ago

Same here. @sudormrfbin any update?