🐛 fix(nvim): yanky function to use a picker
This commit is contained in:
parent
802c978188
commit
7c70180b63
1 changed files with 13 additions and 2 deletions
|
@ -30,9 +30,20 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
|
||||||
keys = {
|
keys = {
|
||||||
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
{
|
||||||
|
"<leader>sy",
|
||||||
|
function()
|
||||||
|
local ok, telescope = pcall(require, "telescope")
|
||||||
|
if ok then
|
||||||
|
telescope.extensions.yank_history.yank_history({})
|
||||||
|
else
|
||||||
|
vim.cmd([[YankyRingHistory]])
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
mode = { "n", "v" },
|
||||||
|
desc = "Yank History",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue