logo

How to set nvim telescope prompt input position?

Posted on
Authors

Problem

By default, the Telescope prompt input is at the bottom. I want to move it to the top.

Solution

Add this options

{
  defaults = {
    layout_strategy = "horizontal",
    layout_config = {
      horizontal = {
        prompt_position = "top",
      },
    },
    sorting_strategy = "ascending",
    --- other configs
  },
}
{
  defaults = {
    layout_strategy = "horizontal",
    layout_config = {
      horizontal = {
        prompt_position = "top",
      },
    },
    sorting_strategy = "ascending",
    --- other configs
  },
}