Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected pasting behaviour with Telescope picker #171

Open
nikbrunner opened this issue Mar 14, 2024 · 1 comment
Open

Unexpected pasting behaviour with Telescope picker #171

nikbrunner opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nikbrunner
Copy link

nikbrunner commented Mar 14, 2024

I am facing this issue (#160) again, but only when the rest of the line is empty. The text pastes before the cursor, contrary to what I expect based on the default settings. It pastes correctly when there is content after the cursor. In thr Video i press <CR> to select.

Screen.Recording.2024-03-14.at.17.04.50.mov

This is my lazy config:

local M = {}

---@type LazyPluginSpec
M.spec = {
    "gbprod/yanky.nvim",
    dependencies = { "chrisgrieser/cmp_yanky" },
    opts = {},
    keys = {
        { "<c-p>", "<Plug>(YankyPreviousEntry)" },
        { "<c-n>", "<Plug>(YankyNextEntry)" },

        { "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" } },
        { "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" } },

        {
            "<C-r>",
            "<cmd>Telescope yank_history theme=cursor previewer=false<cr>",
            desc = "[Y]ank History",
            mode = { "i", "n", "x" },
        },
    },
}

return M.spec

Otherwise, thank you so much for this plugin! :)

@gbprod
Copy link
Owner

gbprod commented Mar 20, 2024

Hey!
Thanks for reporting this issue!
I'll try to find how to fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants