feat: add support for snacks picker in project.lua

This update introduces the ability to use the "snacks" picker
in the project selection functionality. Users can now choose
projects using the snacks picker alongside existing options
like telescope and fzf.
This commit is contained in:
Aaron Weisberg 2025-01-24 14:47:24 -08:00
parent 2bea40c447
commit 2eb01a07ef

View file

@ -3,6 +3,8 @@ local pick = nil
pick = function()
if LazyVim.pick.picker.name == "telescope" then
return vim.cmd("Telescope projects")
elseif LazyVim.pick.picker.name == "snacks" then
require("snacks").picker.projects()
elseif LazyVim.pick.picker.name == "fzf" then
local fzf_lua = require("fzf-lua")
local project = require("project_nvim.project")