mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-31 15:19:38 +02:00
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:
parent
2bea40c447
commit
2eb01a07ef
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue