Skip to content
Discussion options

You must be logged in to vote

The simplest solution to your problem:

Snacks.picker.files {
  hidden = true,
  follow = true,
  cmd = 'fd',
  args = { '--type', 'd' },
  transform = function(item)
    return vim.fn.isdirectory(item.file) == 1
  end,
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frankebel
Comment options

@drowning-cat
Comment options

Answer selected by frankebel
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