mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-20 02:34:32 +02:00
feat(extras): added extra for snacks picker
This commit is contained in:
parent
d1529f650f
commit
6bdeeac529
4 changed files with 100 additions and 2 deletions
|
@ -42,11 +42,13 @@ function M.register(picker)
|
|||
return true
|
||||
end
|
||||
|
||||
---@return "telescope" | "fzf"
|
||||
---@return "telescope" | "fzf" | "snacks"
|
||||
function M.want()
|
||||
vim.g.lazyvim_picker = vim.g.lazyvim_picker or "auto"
|
||||
if vim.g.lazyvim_picker == "auto" then
|
||||
return LazyVim.has_extra("editor.telescope") and "telescope" or "fzf"
|
||||
return LazyVim.has_extra("editor.snacks_picker") and "snacks"
|
||||
or LazyVim.has_extra("editor.telescope") and "telescope"
|
||||
or "fzf"
|
||||
end
|
||||
return vim.g.lazyvim_picker
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue