Commit Graph

954 Commits

Author SHA1 Message Date
i3Cheese
6b3728876f fix(find_files): follow with unix find command (#1787) 2022-03-12 16:11:37 +01:00
Simon Hauser
2d0b4a3243 fix: disable signcolumn in telescope windows (#1781) 2022-03-11 15:34:39 +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
Fabio Manganiello
c5bf83dc61 fix: allow Number type should be allowed for option keys (#1782)
* Number type should be allowed for option keys

Some extension (e.g. `dap`) use integer numbers for their selector
options instead of strings. Before this commit, the interface for these
plugins breaks when using `ui-select` with a stack trace like the
following:

Error detected while processing function StartDebugger:
line   33:
E5108: Error executing lua .../telescope.nvim/lua/telescope/pickers.lua:1359: Should be string, found: number
stack traceback:
        [C]: in function 'assert'
        .../.vim/bundle/telescope.nvim/lua/telescope/pickers.lua:1359: in function 'new'
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:22: in function 'pick_one'
        .../nvim-dap/lua/dap/ui.lua:32: in function 'pick_if_many'
        .../nvim-dap/lua/dap.lua:225: in function 'select_config_and_run'
        .../nvim-dap/lua/dap.lua:551: in function 'continue'
        [string ":lua"]:1: in main chunk

* style

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-03-11 12:49:55 +01:00
tami5
1c4cd6cdaa feat(lsp_references): expose include_declaration option (default still true) (#1449) 2022-03-11 12:46:29 +01:00
Tom
d331433ed8 fix(grep): make filename parser non-greedy (#1785)
To protect against content variation including colon / number
combinations
2022-03-11 10:28:32 +01:00
Tor Bratsberg
6d5634b477 fix: error on toggling selection with empty picker (#1786) 2022-03-10 21:23:27 +01:00
Laura
a7517b4b2d refactor: remove redundant state in preview (#1761) 2022-03-10 16:34:02 +01:00
Slotos
2032f4316f fix(*grep): escape dot when not using regex (#1784) 2022-03-10 14:17:15 +01:00
Simon Hauser
234066f875 fix: man_pages previewer, respecting MANPATH and apropos output parsing (#1764)
- introducing putils writer and use it rather than using PAGER env var
- introducing env for lua/telescope/_.lua job interface
  - to respect MANPATH (and PATH just in case)
- fix for apropos output parsing might return e.g. `alacritty, Alacritty`
  We need to split on first `,`
2022-03-10 13:48:40 +01:00
Simon Hauser
1daf0917cf fix: treesitter picker with lua (defintions) (#1779) 2022-03-08 10:37:56 +01:00
Daniel Imfeld
b501d9ecb7 fix: skip path escaping when adding items to quickfix list (#1712) 2022-03-06 20:34:44 +01:00
Vivianne
1ebf53d8db docs: fix typo 'seperator' in documentation (#1767) 2022-03-04 13:31:25 +01:00
Érico Nogueira Rolim
d2beb22d20 docs: link plenary.nvim dependency in README (#1768) 2022-03-04 13:26:49 +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
Vedant Neema
567ec85b15 fix builtin.autocommands throwing error (#1758) 2022-02-23 15:36:45 +01: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
c948263d89 fix: builtin autocommands previewer throws error (#1732) 2022-02-14 17:36:55 +01:00
Connor Sheehan
88229d5afd fix(actions.qflist): make it work with vim quickfix commands (#1742)
use `r` mode to instead use `" "` mode. This makes Telescope quickfix list action send results
to a new list in the quickfix stack instead of overwriting the entries in the current list. 

Doing so enables `:chistory`, `:colder` and `:cnewer` functions to review results of 
previous Telescope queries.

The location list uses a similar API and is updated in this PR also
(ie this also enables :lhistory, :lolder and :lnewer).
2022-02-13 03:00:52 +03:00
Roland Fredenhagen
f58b0d4dd1 feat(spell_suggest): ignore spell setting (#1744)
z= works even when spell is not set. I think it would be nice if Telescope would behave the same.
2022-02-13 00:00:21 +03:00
Simon Hauser
f262e7d56d chore: format with stylua 0.12.0 (#1730) 2022-01-31 20:34:53 +01:00
daangoossens22
3a3c9a3c8b feat (keymaps): add configuration options (#1703) 2022-01-28 16:36:42 +01:00
daangoossens22
6c275e2f6a fix (autocommands): doesn't show all autocommands (#1717) 2022-01-28 16:31:39 +01:00
Chinmay Dalal
2553236fe1 fix(lsp): add missing offset encoding (#1718) 2022-01-28 16:15:21 +01:00
Christian Clason
21cb64aa1a fix(action): insert symbol in insert mode (#1722)
followup to #1618, ensure insert after cursor
2022-01-28 16:12:50 +01:00
Chinmay Dalal
0011b1148d fix: add offset encoding to vim.lsp.util.locations_to_items() call (#1694) 2022-01-18 08:10:15 +01:00
Richard Mathieson
2cb7e11cc1 fix: add offset encoding to apply_workspace_edit call (#1697) 2022-01-18 08:07:29 +01:00
zeertzjq
76c23d7375 feat: show a message for unknown command (#1698) 2022-01-18 07:46:10 +01:00
Luke Kershaw
1ec682b29d fix: always update preview when _selection_entry changes (#1693) 2022-01-18 07:45:03 +01:00
Luke Kershaw
c1b9dab300 fix: handle filenames with colons in live_grep (#1609) 2022-01-16 16:54:51 +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
daangoossens22
d173740bb4 feat: make results pane of builtin keymaps more readable (#1684) 2022-01-14 21:13:32 +01:00
Simon Hauser
303f3ca6f7 chore: remove deprecated shorthand functions lsp_*_diagnostics
From now on use Telescope diagnostics.
For more informations see `:help telescope.changelog-1553` and
`:help builtin.diagnostics`
2022-01-14 20:58:40 +01:00
Simon Hauser
136d1b36bd fix(health): check fdfind before fd to fix weird output on ubuntu
fix #1425
2022-01-14 20:54:17 +01:00
Luke Kershaw
e8ccd47c4f feat: adds multiselect counter in prompt status_text (#1614) 2022-01-14 18:02:24 +01:00
Chinmay Dalal
3bf4d4b4d0 fix (nightly): add offset encoding to vim.lsp.util.jump_to_location() call (#1688) 2022-01-14 16:54:23 +01:00
fdschmidt93
015a35626d break!: remove file_browser from builtins (#1453)
The file_browser now has been fully removed.

Please move to github.com/nvim-telescope/telescope-file-browser.nvim
for a more featureful extension that replaces the builtin file browser.
2022-01-11 22:00:31 +01:00
Simon Hauser
c54fc1733e Revert "fix: folding when a file is opened (#1643)" (#1673)
This reverts commit 01426c491b.
2022-01-09 21:18:15 +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
Simon Hauser
e8ef88bfcb fix(builtin.treesitter): make sure that kind is not nil
If kind is nil then prefilter throws an error
fix #1631
2022-01-09 19:03:53 +01:00
Abel Mulugeta
01426c491b fix: folding when a file is opened (#1643)
* fix: folding after a file is opened

fixes #559

* fix: wrap nvim_win_set_cursor in autocmd

* chore: Cleanup folding fix

* explain the reason behind the autocmd

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-01-09 18:49:19 +01:00
Ole Strøhm
24046b2361 fix: documentation for lsp_range_code_actions (#1644) 2022-01-09 18:47:19 +01:00
Luke Kershaw
1bb5d5567f fix: allow which_key action without preview (#1668) 2022-01-09 18:40:40 +01:00
pedro757
f06dd06bb1 fix: support find_command along with shorthand options (#1642) 2022-01-06 22:45:09 +01:00
Luke Kershaw
948f5adff2 fix: allow selection_caret to be entirely whitespace (#1660) 2022-01-06 13:44:39 +00: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
Dave G
749ce3b8ca feat: Add <C-w> to default mappings (#1650)
As described in https://github.com/nvim-telescope/telescope.nvim/issues/1579, this adds <C-w> to the default mappings.
2022-01-05 23:36:41 +01:00
Luke Kershaw
c5aad43558 fix: check if status.preview_bufnr is nil before checking if valid (#1657) 2022-01-05 21:06:14 +00:00