Skip to content
Discussion options

You must be logged in to vote

A slightly modified version of @dpetka2001 solution:

Snacks.picker.grep({
  need_search = false,
  args = { "--max-columns=10000" },
  dirs = { vim.api.nvim_buf_get_name(0) },
  layout = {
    preset = "ivy",
    auto_hide = { "preview" },
  },
  format = function(item)
    local ret = { { string.format("%s: ", item.pos[1]), "Conceal" } }
    Snacks.picker.highlight.format(item, item.line, ret)
    return ret
  end,
})

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@dpetka2001
Comment options

@drowning-cat
Comment options

@drowning-cat
Comment options

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