summaryrefslogtreecommitdiff
path: root/lua/telescope/config
AgeCommit message (Collapse)Author
2023-01-22chore: fix stylua ciSimon Hauser
2022-08-01fix(resolve): Check val not nil in resolve funcs (#2097)chmnchiang
We did not check `val ~= nil` in the resolve functions, so config like `{ nil, max = 30 }` will throw a nil error. Also, if the config is `{ padding = _ }`, the logic relies on the function handling the padding is iterated before the one handling min/max in the map, which is not always guaranteed. Fix the bug by adding nil check in the function handling min/max. Close
2022-06-30feat: add min max boundary to width, hight resolver (#2002)Simon Hauser
2022-06-30break: deprecate utils.get_default utils.if_nil (#1545)Simon Hauser
2022-04-18docs: add module prefix (#1847)Simon Hauser
2022-03-13feat: improve UX with vim.notify (#1763)tami5
* fix(notify): don't report request on new line * ref(notify): update message format * ref(msgs): always quote values + decrease duplication * fix(ci): undefined variables * ref(actions): temporary silent actions.__index errors * cleanup * revert: panic effort, we continue to use error for those Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-12-10feat: layout `anchor` (#1582)Luke Kershaw
* feat: add `anchor` option to some `layout_strategies` * tests: improve tests for `resolve_height/width`
2021-09-19feat: `layout_strategies` refactor (#1039)Luke Kershaw
* wip: 2021-07-22 15:00 BST * wip: `horizontal` refactored * wip: `center` refactored * wip: `cursor` and `vertical` refactored * wip: `current_buffer` refactor - also changed `layout_config_defaults` as they gave errors when using `current_buffer` * wip: `bottom_pane` refactor * [docgen] Update doc/telescope.txt skip-checks: true * fix: put accidentally remove config option back * [docgen] Update doc/telescope.txt skip-checks: true * wip: standardise `height` calculation for `center` and `bottom_pane` * wip: improve comments * [docgen] Update doc/telescope.txt skip-checks: true * stylua - also fix a merge mistake * [docgen] Update doc/telescope.txt skip-checks: true * fix: attempt to fix bad merge * refactor: remove unused entry in `borderchars` table - also fix some typos * wip: tweak padding for `bottom_pane` * wip: add `tabline` checks to `bottom_pane` - also tweaked position so that `statusline` is not covered when borders are enabled * stylua * refactor: factor out size capping function * [docgen] Update doc/telescope.txt skip-checks: true * fix: adjust tests that relied on height being number of results * fix: forgot variable in calc_size_and_spacing * fix: maybe this fixes these tests? * test: try other plenary branch for ci * test: switch back to main plenary branch for ci * fix: actually define `max_results` in the test * fix: final tweaks for edge cases Co-authored-by: Github Actions <actions@github>
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-01feat: Consistent and sensible layout_config (#922)TJ DeVries
* feat: Consistent and sensible layout_config * [docgen] Update doc/telescope.txt skip-checks: true * [WIP]: Thu 17 Jun 2021 03:36:44 PM EDT * [WIP]: Thu 17 Jun 2021 03:38:11 PM EDT * layout_default -> layout_defaults * remove options from bug repot * Conni2461 suggestions: part 1 * [docgen] Update doc/telescope.txt skip-checks: true * Conni2461 suggestions: part 2 * [docgen] Update doc/telescope.txt skip-checks: true * Linting * Improve deprecation checks - Move `layout_defaults` handling to `deprecated.lua` - Check for "layout keys" outside of `layout_config` on `setup` * fixup: Just add a few more words Co-authored-by: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Co-authored-by: Github Actions <actions@github>
2020-10-27feat: Added some docs & validationTJ DeVries
2020-10-27Fix error message (#198)Jan Šipr
2020-10-08fix: Select only the desired value in resolversTJ DeVries
2020-10-08fix: Respect cmdheight and laststatusTJ DeVries
2020-10-08fix: Don't consider 1 as a percentage for resolveTJ DeVries
Fixes: #155
2020-09-17wip: more work on config resolutionTJ DeVries
2020-09-17wip: Add for rockerTJ DeVries
2020-09-12wip: some more musings on resolving height and widthTJ DeVries
2020-09-12feat: Better border configuration.TJ DeVries
Started adding `resolve` which will allow you to do some really nice stuff easily with options to get the window options from a variety of inputs. You can see how we do it in pickers.lua for borders & borderchars currently.