Skip to content
Discussion options

You must be logged in to vote

There is probably a simpler way to go about this, but I was able to achieve this with the following key:

{
  "<leader>sp",
  function()
    Snacks.picker.projects({
      finder = "recent_projects",
      format = "file",
      win = {
        preview = {
          minimal = true,
        },
      },
      confirm = function(picker, item)
        picker:close()
        if item then
          vim.schedule(function()
            Snacks.picker.recent({
              filter = {
                cwd = Snacks.git.get_root(item.text),
              },
              finder = "recent_files",
              format = "file",
            })
          end)
        end
      end,
    })
  end,
  desc = "P…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@moukle
Comment options

Answer selected by moukle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants