fix(pick): allow configuring pickers without LazyExtras. Fixes #3626

This commit is contained in:
Folke Lemaitre 2024-06-14 17:55:43 +02:00
parent c9380a309d
commit 304e7439aa
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 42 additions and 2 deletions

View file

@ -301,13 +301,13 @@ return {
{
import = "lazyvim.plugins.extras.editor.fzf",
enabled = function()
return LazyVim.has_extra("editor.fzf")
return LazyVim.pick.want() == "fzf"
end,
},
{
import = "lazyvim.plugins.extras.editor.telescope",
enabled = function()
return not LazyVim.has_extra("editor.fzf")
return LazyVim.pick.want() == "telescope"
end,
},
}