mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
refactor: check active picker
This commit is contained in:
parent
3b0810c003
commit
f608564517
2 changed files with 16 additions and 17 deletions
|
@ -11,9 +11,8 @@ return {
|
|||
{
|
||||
"<leader>p",
|
||||
function()
|
||||
local ok, telescope = pcall(require, "telescope")
|
||||
if ok then
|
||||
telescope.extensions.yank_history.yank_history({})
|
||||
if LazyVim.pick.picker.name == "telescope" then
|
||||
require("telescope").extensions.yank_history.yank_history({})
|
||||
else
|
||||
vim.cmd([[YankyRingHistory]])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue