Skip to content

Delayed Display of Yanked Entries in fzf-lua with neoclip #146

@chapeupreto

Description

@chapeupreto

Hi there!

I am using nvim-neoclip.lua with @ibhagwan 's fzf-lua and one thing that I've noticed is that the yanked entries don't show up in the picker until the second time the picker is invoked. For instance, I just opened a file in Neovim and started yanking some text. After that, I invoke <C-h> (my keymap for opening fzf-lua and neoclip). At this moment, nothing shows up. All is empty. Now, I close the window and start yanking again. After invoking <C-h> for this second time, the yanked registries are shown up and everything works fine. Any ideas on how to fix this? Below is my lazyvim config:

return {
    {
        "AckslD/nvim-neoclip.lua",
        dependencies = {
            {'ibhagwan/fzf-lua'},
        },
        keys = {
            {
                "<C-h>", function()
                    require("neoclip.fzf")()
                end,
                desc = "Clipboard manager",
            },
        },
        config = function()
            require('neoclip').setup {
                keys = {
                    fzf = {
                        i = {
                            paste = '<nop>',
                            paste_behind = '<nop>',
                        },
                    }
                }
            }
        end
    }
}

Thanks a lot for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions