Commit Graph

738 Commits

Author SHA1 Message Date
Tom Praschan
1408e3bbb7 feat: add option to configure width of items in gen_from_lsp_symbols() (#812) 2021-05-08 13:43:38 +02:00
Luke Kershaw
144c761e03 fix: oldfiles cwd_only that include backslashes (windows) (#820) 2021-05-08 13:38:40 +02:00
Eugene Oliveros
bc6385be31 feat: Add only_sort_tags option for builtin.tags (#825) 2021-05-08 13:38:18 +02:00
William Boman
88f7b27222 handle errors from buf_request_sync (#819) 2021-05-06 23:00:31 +03:00
Alex Fischer
ad30a7b085 fix: file browser navigate to parent directory on windows (#786) 2021-04-28 20:15:25 +02:00
TJ DeVries
38765f68db fix: Fix things for conni 2021-04-28 10:38:24 -04:00
Dhruv Manilawala
28ae702682 fix: use treesitter language name instead of ft if available (#801)
* fix: use treesitter language name if available

This will fix the problem where the filetype is different than the
treesitter lang name. Eg., filetyep -> "sh", langname -> "bash"

* refactor: use treesitter only if the query object is available

* refactor: ok -> parser_ok ;)
2021-04-28 10:29:28 -04:00
Ben Smith
6fd1b3bd25 docs: Git actions docs fix (#787)
* Removed function headers for git actions

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

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

* Added TODO & comments instead of removing headers

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

Co-authored-by: Github Actions <actions@github>
2021-04-23 14:16:44 -04:00
Volodymyr Kot
712de3e182 feat: add search history picker (#769)
Co-authored-by: Volodymyr Kot <vkot@palantir.com>
2021-04-23 18:24:09 +03:00
TJ DeVries
a28999574e feat: allow reset prompt to set text as well 2021-04-22 17:55:06 -04:00
TJ DeVries
c6980a9acf docs: add other actions modules (#792)
* docs: add other actions modules

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

* fixup

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

Co-authored-by: Github Actions <actions@github>
2021-04-22 17:08:22 -04:00
PolarMutex
0d6cd47990 fix checking for git dir in a bare repo (#757)
* fix checking for git dir in a bare repo

* revert last change and look for worktree

* fix lint error

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

Co-authored-by: Brian Ryall <brian.ryall@udri.udayton.edu>
Co-authored-by: Github Actions <actions@github>
2021-04-22 13:23:42 -04:00
William Boman
3adeab2bed fix: support multiple clients in lsp code actions (#722)
* fix: support multiple clients in lsp code actions

* no goto

* reduce diff a bit

* use displayer, also include lsp client name for each entry

* review comments
2021-04-20 17:48:29 -07:00
Viktor Kojouharov
13dae8c4d9 lsp: Implement lsp.implementations similar to lsp.definitions (#743)
Fixes #730
2021-04-20 17:31:43 -07:00
August Masquelier
f92b9b1fae fix: live_grep path appending with cwd when already absolute (#768) 2021-04-17 22:50:07 +03:00
TJ DeVries
d27907b0da fix: Default to an empty sorter, so we always have one 2021-04-16 11:11:40 -04:00
Lars Haalck
f2c3f724ad Fix: open files with the same name (#697) (#741)
* Fix: open files with the same name (#697)

* Fix: fire vim.cmd if command is not edit (#760)
2021-04-15 09:30:56 -04:00
Weihang Lo
9e603d3c1b feat: table layout for builtin commands (#754) 2021-04-15 09:26:38 -04:00
TJ DeVries
2e7ee55aa4 feat: Add more sorter hooks (#752)
* feat: Add more sorter hooks

* fix breaking conni brain
2021-04-15 09:24:10 -04:00
James Walmsley
07d518105c picker(live_grep): add option to grep only over open files (#666) 2021-04-14 18:31:22 +03:00
Ben Smith
c5f0d05835 git(action): create and checkout branch (#755)
* added git action for creating and checking out a new branch, added basic docstrings for git actions

* Added confirmation for creation of new branch, changed default mapping
to <c-u>

* Switched back to `<c-a>` default mapping for now
2021-04-14 12:31:05 +03:00
oberblastmeister
253d3aaa6b added a new DynamicFinder (which can be used with rust_analyzer) (#705)
* started tree finder

* made tree more ergonmic

* deleted unneeded comments

* added stack root and node

* added preprocessing

* using staticfinder instead of separate finder, custom entry maker

* added selections and remember

* removed unused stuff

* fixed warnings

* fixed remember and selections pop

* started branch

* added go function

* changed up test

* removed root parameter from go function

* changed back to not do_close

* removed node and leaf classes

* removed stack class instead for table.insert and table.remove

* fixed warning

* started branch

* added better preprocessor and tree class

* started some tests

* finished making tests pass

* cleaned up

* fixed make entry and updated example

* started

* added some stuff

* deleted uneeded stuff

* added cancelable

* changed workspace requester

* use better cancellation mechanism

* removed accidental stuff

* removed useless print

* delete more useless stuff

* rename to dynamic

* added request cancellation

* CHECK IF NIL

* removed unused

* added trash global variable
2021-04-13 14:39:14 -04:00
Senghan Bright
5bd6f5ca98 feat: add icons to git_status finder (#401)
* add icons to git_status finder

* fix lint warning

* fix incorrect removed icon

* refactor, more states/icons

* refactor, widen columns to allow for 3char width icons

* attempted col width fix

* fixup: small comments

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-04-09 13:33:10 -04:00
TJ DeVries
ba1e674e68 fix: update to newer code (#744) 2021-04-09 13:04:01 -04:00
Nitin Chaudhary
2ebbf7f9d4 pickers(buffers): added only_cwd opt (#739)
closes #733 
Co-authored-by: Nitin Chaudhary <nitin.chaudhary@sap.com>
2021-04-09 12:52:26 +03:00
TJ DeVries
64e59060b1 feat: asyncify pickers - except for live_grep (#709)
* something kind of works already

* yayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayaya

* use async for everything besides live jobs

* fix: fixup autocmds previewer

* fix: lints for prime

* temp: Add example of how we can think about async sorters

* feat: Allow picker to decide when to cancel

* fix: simplify scoring logic and tests

* fixup: name

* fix: Move back towards more backwards compat methods

* fixup: Remove results from opts

* fixup: remove trailing quote

* fixup: Attempt to clean up some more async items. Next is status

* wip: Add todo for when bfredl implements extmarks over the EOL

* wip

* fixup: got em

* fixup: cleaning

* fixup: docs
2021-04-08 10:35:44 -04:00
TJ DeVries
e5fbe6fe60 fix: Use standardized names for current buffer fuzzy find (#737) 2021-04-07 17:12:47 -04:00
Kyoichiro Yamada
d367eb4fd8 fix(git_branches): use the quoted fields instead of json-formatting and fix regressions with #695 (#704) 2021-04-07 17:00:38 +02:00
TJ DeVries
0b2c801978 feat: buf highlights for current buffer fuzzy find (#732)
* feat: Add buffer highlights from treesitter

* fix: Handle not having tree sitter in some buffers

* fixup

* fixup

* fixup: move back to old node
2021-04-06 19:59:42 -04:00
August Masquelier
d0cf646f65 feat: current buffer fuzzy find improvements (#694)
If you don't want to have a previewer disable it with `:Telescope current_buffer_fuzzy_find previewer=false`
To ignore empty lines do: `:Telescope current_buffer_fuzzy_find skip_empty_lines=true`
2021-04-04 13:04:06 +02:00
Thiago Medeiros
0944c4a88f Fix git rebase input message (#720) 2021-04-03 22:48:42 -04:00
ovikk13
89a6161c81 Fix #707: lsp_workspace_symbols add support for multiple clients. (#718) 2021-04-03 20:11:38 +03:00
Jesse Leite
2c4efc2f8a fix: better relative path output in live_grep and grep_string (#683) 2021-03-31 09:47:21 +02:00
Simon Hauser
aefc831735 fix: no longer leaking one buffer previewer in some occasions (#664)
* fix: stop leaking last preview buffer
* fix: formatting for docs
* fix: async check if file is dir or not and
  - fix for in_fast_event when overriding file_maker
* fix: filtering for space in keymaps and fzy
* fix: show correct result numbers when using file_ignore_patterns
* Handle early close. Caused because we actually cleaning up buffers now
* cleanup
* [docgen] Update doc/telescope.txt
2021-03-30 12:32:18 +02:00
Kyoichiro Yamada
2e03f67de9 picker(git_branch): show committer, upstream and date (#695)
* wip: rich finder for branches

for: https://github.com/nvim-telescope/telescope.nvim/issues/569

* fix some diagnostics
2021-03-29 21:04:25 +03:00
Jesse Leite
a7fa60411e Fix prompt titles. Closes #OCD. (#675) 2021-03-21 12:44:08 +07:00
Jesse Leite
d4bf1181ea Improve oldfiles Picker (#657) 2021-03-18 10:21:25 +03:00
TJ DeVries
c50eaf5c9a fix: Do not error with clearing namespace on clearing display 2021-03-17 20:04:39 -04:00
Christopher Laidler
812fae1d71 fix: related to #13 telescope-project, enter insert mode on prompt close (#637)
* fix: related to #13 telescope-project, enter insert mode on prompt close

* fix: related to #13 telescope-project, enter insert mode on prompt close

* revert changes made in error

* fix PR issue

* fix: undefined variable do_close

* use action_state as actions is deprecated

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

Co-authored-by: Github Actions <actions@github>
2021-03-17 04:50:06 +07:00
tami5
284f38c575 feat & fix: Command History Picker (#656) 2021-03-14 20:05:56 +03:00
Volodymyr Kot
5333ab0b19 Prefer vim.api over vim.fn (#650)
See https://github.com/neovim/neovim/pull/13875 for details.
2021-03-14 17:11:45 +03:00
elianiva
c8cc024ebf feat: add add_to_qflist, add_selected, and smart_add (#636)
* feat: add `add_to_qflist`, `add_selected`, and `smart_add`

* refactor: use local function
2021-03-12 11:00:15 +07:00
TJ DeVries
add7ee3943 nit: Don't reset highlights on detach 2021-03-09 22:44:45 -05:00
fdschmidt93
559bf36e73 feat: add completion to pre-filtering (#626)
Works by pressing `<C-l>` in insert mode. Supported are all builtins that have prefiltering. Means:
- lsp_workspace_symbols
- lsp_workspace_diagnostics
- lsp_document_symbols
- lsp_document_diagnostics
2021-03-09 21:04:21 +01:00
oberblastmeister
ff428c9187 feat: lsp definitions (#631)
* added lsp definitoins

* don't call locations_to_items when there is one

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

* added missing end

* added description

* added to feature map

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>
Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>
2021-03-09 14:17:56 -05:00
oberblastmeister
1c80a92d40 fix: error using dictionary as a string when running send_to_qflist (#622) 2021-03-07 08:50:57 +01:00
Simon Hauser
68c30dd560 fix: only expand if we are not in_fast_event() 2021-03-07 08:41:45 +01:00
elianiva
6e941e0ece feat: define scroll speed + smart_send to qflist (#610)
* smart send to qflist

* Previewer scrolling for half window height

* Start doing cleanup in readme

* feat: add ability to define the scrolling speed

* move scrolling action to action.set

* docs: added more docs for actions

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

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-03-05 20:13:48 +07:00
fdschmidt93
8369acea3e fix: error from unset LspDiagnosticSign & introduce opts.no_sign to lsp_*_diagnostics (#607) 2021-03-04 21:53:41 +01:00
Tom
e7f724b437 feat: add hidden opt to file_browser (#608)
:Telescope file_browser hidden=true
2021-03-04 20:40:35 +01:00