Skip to content

Use custom/default telescope picker for vim.ui.select #108

Closed Answered by Subjective
Subjective asked this question in Q&A
Discussion options

You must be logged in to vote

For future reference, I was able to get the style I wanted with these options:

opts = {
  select = {
    backend = { "telescope"  },
    telescope = {
      layout_strategy = "horizontal",
      layout_config = {
        preview_cutoff = false,
        width = function(_, max_columns, _) return math.min(max_columns, 80) end,
        height = function(_, _, max_lines) return math.min(max_lines, 15) end,
      },
    },
  },
},

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Subjective
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