Commit Graph

159 Commits

Author SHA1 Message Date
Michael Benford
317371d37c feat: global configuration of results_title and prompt_title (#1817) 2022-04-08 18:17:54 +02:00
Waldson Patrício
1a72a92b64 feat: enable individual options for mappings (#890)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-03-20 21:34:07 +01:00
Jonathan Birk
6a43634f5f doc: help for select_{default,tab,vertical,horizontal} (#1801) 2022-03-20 20:08:54 +01:00
Suvansh Kumar
8c7ac1df9d docs: fix typo in defaults.history section (#1797) 2022-03-20 11:34:44 +01:00
Dylan Byars
70b3e38730 docs: fix typo in builtin.pickers section (#1792) 2022-03-20 11:31:41 +01:00
Sean Mackesey
1e4d5e59df feat(diagnostics): additional filter options (#1610)
- root_dir. Useful to browse only project-scoped diagnostics.
- buflisted status. Useful to exclude diagnostics from unlisted buffers, which are created by language servers that analyze the entire project/workspace (e.g. sumneko-lua).
2022-03-12 16:49:06 +01:00
tami5
ddb9e56160 feat(lsp): ignore_symbols option (#1745)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-03-11 14:41:48 +01:00
tami5
1c4cd6cdaa feat(lsp_references): expose include_declaration option (default still true) (#1449) 2022-03-11 12:46:29 +01:00
Vivianne
1ebf53d8db docs: fix typo 'seperator' in documentation (#1767) 2022-03-04 13:31:25 +01:00
Alef Pereira
76120285f8 Change center layout strategy to allow vertical anchoring (#1719)
* Change center layout strategy to allow vertical anchoring

Affects `telescope.pickers.layout_strategies.center` that is used by dropdown
(`telescope.themes.get_dropdown()`) theme, allowing more customization for
dropdown theme, i. e. setting it in the top with mirrored preview.

For `anchor` containing `N` or `S` will ignore `mirror` config
and preview will be placed as follows:
- Anchoring for `N` put the preview below the prompt result block.
- Anchoring for `S` put the preview above the prompt result block.

- For horizontal anchoring preview will be placed according to `mirror`.

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Github Actions <actions@github>
2022-03-02 22:05:09 +00:00
Sultanahamer
df0b35c8bc feat: allow user to wrap picker results (#701, #1296) (#1735) 2022-02-15 08:51:56 +01:00
James Trew
206e71d133 fix: add opts.bufnr and opts.winnr to builtin picker (#1706) 2022-02-14 17:39:58 +01:00
daangoossens22
3a3c9a3c8b feat (keymaps): add configuration options (#1703) 2022-01-28 16:36:42 +01:00
Luke Kershaw
2bfc0eb2cf fix: update multi_icon with select/drop/toggle_all actions (#1682)
* fix: `multi_icon` with `select/drop/toggle_all`

* typos

* fix: add check for no caret found

* fix: add check for no line found

* fix: check `max_results` in `Picker:can_select_row`

- also switch order of highlighting in `select/drop/toggle_all` actions

* fix: make `max_results` check a strict inequality

* [docgen] Update doc/telescope.txt
skip-checks: true

* fix: update `prompt_status` on `select/drop/toggle_all` actions

Co-authored-by: Github Actions <actions@github>
2022-01-15 22:27:03 +00:00
Ariel
860cc65663 docs: remove file browser (#1691) 2022-01-15 10:50:30 +01:00
Julian Fricker
5060f3f0ab feat: tiebreak config function (#1401)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-01-09 19:43:06 +01:00
Ole Strøhm
24046b2361 fix: documentation for lsp_range_code_actions (#1644) 2022-01-09 18:47:19 +01:00
Luke Kershaw
f285599440 feat: multiselect icon (#1572)
* feat: add `multi_icon` option to pickers and corresponding highlight

* feat: allow `multi_icon` to be any length

* fix: adjust `selection_caret` highlighting
2022-01-05 22:42:29 +00:00
fdschmidt93
3dafcb419b fix: too early setup on initial extension access (#1601) 2021-12-27 17:55:43 +01:00
kylo252
a1f838d436 chore: remove redundant run_builtin action (#1589) 2021-12-27 09:48:34 +01:00
Luke Kershaw
5f37fbfa83 feat: layout anchor (#1582)
* feat: add `anchor` option to some `layout_strategies`

* tests: improve tests for `resolve_height/width`
2021-12-10 19:08:24 +00:00
Simon Hauser
56325fefb2 feat: migrate to Telescope diagnostics using vim.diagnostic (#1553) 2021-12-10 17:49:06 +01:00
Simon Hauser
61240ac75a break: bump the minimum required neovim version to 0.6 or higher (#1549)
So we can use `vim.json` and `vim.diagnostics`.

If you aren't able to update to 0.6.* yet you should pin the previous commit.
2021-12-10 16:32:28 +01:00
Luke Kershaw
80cdb00b22 feat: center layout mirror option (#1577) 2021-12-10 11:48:14 +01:00
Farbod Salamat-Zadeh
6b1579741a fix: git stash entry formatting (#1452) 2021-12-06 21:20:37 +01:00
GenesisTMS
a88d92417d typo: which_key (#1560) 2021-12-06 21:12:42 +01:00
Luke Kershaw
582dbd4da8 defaults: change center layout default size (#1546)
* defaults: change `center` layout default size

- now matches the description and has space for a preview above the central block
2021-12-03 17:50:44 +01:00
Luke Kershaw
0c819d6605 docs: layout strategy usage (#1493) 2021-12-03 15:21:26 +01:00
Luke Kershaw
22e59556f9 chore: layout strategy tidying (#1509) 2021-11-29 10:42:23 +00:00
Luke Kershaw
d686fb2799 fix: cleanup of layout actions
* fix: finish docs and remove mistakes from merge

* fix: change order of `popup` changes based on type of change
  - removes "flash" issue where popups don't update in sync
2021-11-18 19:44:12 +00:00
Luke Kershaw
edcf07cf88 feat: layout actions (#1383)
Co-authored-by: johnybx <johnybx@users.noreply.github.com>
2021-11-18 19:44:12 +00:00
johnybx
b952c2f852 feat: add hide / unhide preview (#1305)
* feat: add hide / unhide preview or results and prompt

* fix edit actions while only preview window is active

* add option to start telescope without previewer -> "disable_previewer_at_startup"

* remove hide / unhide prompt and resutls, improve hide / unhide preview

* fix tests - check if popup window should be created with borders - popup.create does not support setting borderhighlight and border=false

* allow toggle preview even if preview is set to false

* reuse recalculate_layout in hide / unhide preview

* add docs to toggle preview

* check if preview window is valid window

* remove unnecessary changes

* cleanup, remove unnecessary changes

* close all previewers, refactor toggle preview code

[docgen] Update doc/telescope.txt
skip-checks: true
2021-11-18 19:44:12 +00:00
Luke Kershaw
729492406e feat: exclude option for shorten in path_display (#1429)
* feat: allow excluding positions for `shorten` in `path_display`

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Github Actions <actions@github>
2021-11-14 09:37:15 +00:00
Desmond Chin
68308735c1 doc: fix typo in telescope.txt (#1431) 2021-11-13 13:50:53 +01:00
Luke Kershaw
22198ea588 docs: add a changelog entry for updated version requirements (#1444)
- also updates the error message to point to it
2021-11-13 11:17:15 +00:00
Luke Kershaw
bf77c5d2fa feat: results scrolling actions (#1436) 2021-11-13 11:15:07 +00:00
Andrew Wray
e4ab6d2844 Fix small typo in previewers section (#1433) 2021-11-09 09:35:39 +01:00
Luke Kershaw
4583828366 docs: generate docs for hl_result_eol (#1426)
Co-authored-by: Github Actions <actions@github>
2021-11-07 15:35:34 +00:00
fdschmidt93
2097f11305 fix: deactivate binary ft detection for Win32 (#1413)
* Make `file` mime type detection for Windows users opt-in, as it caused issues when they had it
2021-11-04 07:32:02 +01:00
Simon Hauser
0caec3d6e4 Revert "break: changed the results window highlight to always be full width (#1312)" (#1398)
This reverts commit 3b9ac8edba.
2021-10-31 17:02:38 +01:00
Julian Fricker
3b9ac8edba break: changed the results window highlight to always be full width (#1312)
Can be changed back by setting 
telescope.setup {
  defaults = {
    hl_result_eol = false,
  }
}
2021-10-29 18:57:41 +02:00
Simon Hauser
f31ef36293 fix: opts.git_command for files, commits, bcommits (#1374) 2021-10-24 08:30:31 +02:00
nickelc
a823ae8eb5 docs: fix typo in qflist_previewer's default value (#1363) 2021-10-24 08:20:08 +02:00
Luke Kershaw
adfbd616c6 feat: recalculate picker layout on VimResized (#959)
* WIP: recalculate picker layout on `VimResized`

* refactor: `popup.resize` -> `popup.move`

* fix: scroll to the correct place after resize

* fix: update positioning in results buffer

* fix: completely redraw results buffer on resize

* fix: handle preview enable/disable

* fix: work with scrolling

* docs: add plan for `toggle_padding`

* refactor: factor out creation of picker windows

* refactor: pass highlights directly to popup_create

* refactor: remove lines update and factor out scroll repositioning

Co-authored-by: Github Actions <actions@github>
2021-10-20 11:06:10 +01:00
fdschmidt93
c19eae901c feat: filtering for dynamic workspace symbols (#1336)
* enable `symbols` filtering opt for builtin.dynamic_workspace_symbols
2021-10-12 18:48:55 +02:00
Patrick Ziegler
ba41f0eeb1 fix: alias cwd_only and only_cwd option for buffers and oldfiles (#1316)
* Alias cwd_only and only_cwd option for builtins

Fixes #1199
Closes #1275
2021-10-09 15:40:08 +02:00
Luke Kershaw
be600b5421 feat: more prompt position strategies (#1280)
* feat: allow `prompt_position` for `vertical` layout strategy

* feat: allow `prompt_position` for `bottom_pane` layout strategy

* stylua

* [docgen] Update doc/telescope.txt
skip-checks: true

* refactor: switch to `string.format`

* stylua

* feat: allow `prompt_position` for `center` layout strategy

* feat: handle user defined `prompt_position` within themes

* [docgen] Update doc/telescope.txt
skip-checks: true

* fix: tweak `center` layout

- ensure `prompt` title is visible when `prompt_position="bottom"`

* fix: refactor `center` tweak

- move title to bottom of picker when `prompt_position="bottom"`

* fix: tweak `bottom_pane` layout

* stylua

Co-authored-by: Github Actions <actions@github>
2021-10-04 21:16:58 +02:00
fdschmidt93
a6c7498bdc feat: filetype_hook & improved docs; fix preview partial override (#1273) 2021-09-27 15:24:35 +02:00
tami5
60660334c7 feat(defaults): enable customization of path_display.truncate (#1264)
followup to https://github.com/nvim-telescope/telescope.nvim/pull/1254
and implementation of
https://github.com/nvim-telescope/telescope.nvim/pull/1254#issuecomment-922527270
2021-09-20 12:52:59 +03:00
Luke Kershaw
f0db7d3a59 feat: truncate option for path_display (#1254) 2021-09-19 20:38:00 +02:00