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

Popup callback

Open AlexXandreE opened this issue 3 years ago • 0 comments

During popup creation it is possible to pass in the callback option but when executing it it throws: E5108: Error executing lua [string ":lua"]:1: module 'popup' not found:

    local options = { 'bla bla', 'bleble' }
    local win_id = popup.create(options, {
        title   = "Module",
        line = 0,
        col = 0,
        width = 50,
        border = {},
        callback = function(id, row) print(row)  end
    })

I solved this by just adding "plenary." to popup/init.lua :425

Is this something to do with my setup?

Thanks and keep the good work.

AlexXandreE avatar Sep 08 '22 08:09 AlexXandreE