mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(yanky): added fzf-lua support
This commit is contained in:
parent
60a1c1979d
commit
82f680ee6b
1 changed files with 12 additions and 1 deletions
|
@ -8,8 +8,19 @@ return {
|
||||||
highlight = { timer = 150 },
|
highlight = { timer = 150 },
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>p",
|
||||||
|
function()
|
||||||
|
local ok, telescope = pcall(require, "telescope")
|
||||||
|
if ok then
|
||||||
|
telescope.extensions.yank_history.yank_history({})
|
||||||
|
else
|
||||||
|
vim.cmd([[YankyRingHistory]])
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
desc = "Open Yank History",
|
||||||
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
{ "<leader>p", function() require("telescope").extensions.yank_history.yank_history({ }) end, desc = "Open Yank History" },
|
|
||||||
{ "y", "<Plug>(YankyYank)", mode = { "n", "x" }, desc = "Yank Text" },
|
{ "y", "<Plug>(YankyYank)", mode = { "n", "x" }, desc = "Yank Text" },
|
||||||
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Cursor" },
|
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Cursor" },
|
||||||
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Cursor" },
|
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Cursor" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue