Commit Graph

952 Commits

Author SHA1 Message Date
Simon Hauser
40c1e88904 chore: fix lint errors from latest ci run 2022-03-26 10:25:47 +01:00
Mathijs Bakker
503db70a6a fix: typo in a LSP error message (#1805) 2022-03-24 20:59:41 +01: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
Luke Kershaw
f8a67765f5 fix: default layout_config to {} on cycle_layout actions (#1796) 2022-03-20 11:26:51 +01:00
Simon Hauser
df303e12e0 hotfix: scrolling should work correctly again 2022-03-13 20:21:14 +01:00
Simon Hauser
2532b98d67 fix: selection strategy madness if its not set to reset (#1559)
* fix: selection strategy madness when its not row

* fix: selection_strategy row
2022-03-13 20:04:32 +01:00
Simon Hauser
9f0dd2e402 fix: action mt again (#1487)
actions should be concatinable again
2022-03-13 19:22:16 +01:00
tami5
ef7b6ada6d feat: improve UX with vim.notify (#1763)
* 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>
2022-03-13 18:11:27 +01:00
Simon Hauser
75b5730432 chore: delete unused functions (#1788)
* chore: delete unused functions

* chore: remove unused file

No one needs this WIP file as well. We already have all these pickers
implemented in a better way
2022-03-13 07:31:37 +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
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
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
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