feat: layout horizontal and vertical can now be mirrored (#548)

See documentation for more info
This commit is contained in:
Ben Smith
2021-02-28 10:16:47 +00:00
committed by GitHub
parent e1c8ad5d78
commit ed2764a1bd
3 changed files with 74 additions and 12 deletions

View File

@@ -147,7 +147,12 @@ require('telescope').setup{
sorting_strategy = "descending",
layout_strategy = "horizontal",
layout_defaults = {
-- TODO add builtin options.
horizontal = {
mirror = false,
},
vertical = {
mirror = false,
},
},
file_sorter = require'telescope.sorters'.get_fuzzy_file,
file_ignore_patterns = {},
@@ -199,7 +204,7 @@ EOF
| `sorting_strategy` | Where first selection should be located. | descending/ascending |
| `layout_strategy` | How the telescope is drawn. | [supported layouts](https://github.com/nvim-telescope/telescope.nvim/wiki/Layouts) |
| `winblend` | How transparent is the telescope window should be. | NUM |
| `layout_defaults` | Layout specific configuration ........ TODO | TODO |
| `layout_defaults` | Extra settings for fine-tuning how your layout looks | [supported settings](https://github.com/nvim-telescope/telescope.nvim/wiki/Layouts#layout-defaults) |
| `width` | TODO | NUM |
| `preview_cutoff` | TODO | NUM |
| `results_height` | TODO | NUM |