mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(pick): ignore registering the same picker
This commit is contained in:
parent
1d50c75a4b
commit
48a70aa8f5
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function M.register(picker)
|
|||
if vim.v.vim_did_enter == 1 then
|
||||
return true
|
||||
end
|
||||
if M.picker then
|
||||
if M.picker and M.picker.name ~= picker.name then
|
||||
LazyVim.warn(
|
||||
"`LazyVim.pick`: picker already set to `" .. M.picker.name .. "`,\nignoring new picker `" .. picker.name .. "`"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue