diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-11 14:39:56 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-11 14:39:56 -0400 |
| commit | a9404201a9ea3170d9b12620024602ed58750b1f (patch) | |
| tree | e8047e8ef5b31abd602faf6863b43a6a591df011 /lua | |
| parent | 3316dcd7a3f77d9b37d0fb8a3db283e0a551e8d9 (diff) | |
scratch: add thoughts
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers/config_collapse.lua | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lua/telescope/pickers/config_collapse.lua b/lua/telescope/pickers/config_collapse.lua index 286d484..ee59c10 100644 --- a/lua/telescope/pickers/config_collapse.lua +++ b/lua/telescope/pickers/config_collapse.lua @@ -27,6 +27,58 @@ Result of `resolve` should be a table with: }, } +!!NOT IMPLEMENTED YET!! + +height = + 1. pass between 0 & 1 + This means total height as a percentage + + 2. pass a number > 1 + This means total height as a fixed number + + 3. { + previewer = x, + results = x, + prompt = x, + }, this means I do my best guess I can for these, given your options + + 4. function(max_rows) + -> returns one of the above options + return max.min(110, max_rows * .5) + + if columns > 120 then + return 110 + else + return 0.6 + end + +width = + exactly the same, but switch to width + + +{ + height = 0.5, + width = { + previewer = 0.25, + results = 30, + } +} + +https://github.com/nvim-lua/telescope.nvim/pull/43 + +After we get layout, we should try and make top-down sorting work. +That's the next step to scrolling. + +{ + vertical = { + }, + horizontal = { + }, + + height = ... + width = ... +} + --]] local resolver = {} |
