Commit Graph

575 Commits

Author SHA1 Message Date
fdschmidt93
2e7584f1cf fix: stacked hooks in buffer previewer (#1253) 2021-09-17 20:02:56 +02:00
fdschmidt93
5a020a8859 fix: fallback to syntax hl if treesitter fails (#1249) 2021-09-17 00:07:54 +02:00
fdschmidt93
7c5b846f6f feat: skip/timeout preview if file cannot be easily previewed (#1231)
* For full configuration, see `:h telescope.defaults.preview`
* Unblocks previewer on binaries, too large files, and files that take too long to read
* Allows toggling treesitter highlighting for buffer_previewer
* Allows to globally opt out of previewer
2021-09-16 23:01:40 +02:00
gavynriebau
ac03f495c6 fix: wrap vim.cmd in pcall to avoid error (#1247)
When opening a file under swap from the "fd" finder results an error was
printed after the file was opened, wrapping the call to "vim.cmd" in a
pcall avoids the error.
2021-09-16 12:02:24 +02:00
Anthony Nichols
5f0ccf1346 feat: support <pattern> for git-for-each-ref (git_branches) (#1248) 2021-09-16 11:58:59 +02:00
Simon Hauser
5131df7df1 docs: rewrite readme and add missing config values + builtin opts 2021-09-16 11:12:12 +02:00
Matsu
aaffa84ebb feat: Remove version field if zero from codeaction calls (#738)
should fix code actions for jdtls

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-09-15 18:31:51 +02:00
Simon Hauser
4380e453ca fix: default make_entry (#1239)
from_string doesnt exist. Its called gen_from_string
2021-09-13 21:49:13 +02:00
fdschmidt93
29997233bc fix: make qf commands possible from any picker (#1237)
* Allow any qf cmd by defaulting to {lnum=1, col=1} for qflist if values are unset
2021-09-13 18:30:14 +02:00
qualious
1d17cc4abc feat: smart path (#914)
path_display = { "smart" }

Co-authored-by: Deniz <deniz@admentum.se>
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-09-12 21:14:00 +02:00
Chase Colman
978366ba46 fix: add no more flags delimiter for ripgrep (#1217)
This matches the behavior of fzf, if a user needs to pass additional
arguments they can use additional_args or change vimgrep_arguments.
2021-09-12 11:37:04 +02:00
Rodrigodd
d022ccaf11 feat: lsp type definitions (#1224) 2021-09-12 11:36:28 +02:00
Senghan Bright
9d847e7904 feat: checkhealth (#1066)
* rebase on latest master

* remove obsolete `popup.nvim` check

* fixup: Move to health and fixups

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-09-10 12:33:09 -04:00
fdschmidt93
1c35ea319e fix: stale lnum in buffer previewer (#1229)
* fix: lnum to jump to might be stale eg when resuming buffer picker after changes
2021-09-10 13:21:04 +02:00
thibthib18
b4d6eb9a23 feat: git merge branch action (#1220) 2021-09-10 08:50:58 +02:00
Simon Hauser
d2b768983c fix: jump to tag if buffer has unsaved changes (#1230) 2021-09-10 08:48:41 +02:00
fdschmidt93
55ec6c5c9c fix: restoring picker table/function opts (#1205)
* fix: missing opts for cached picker creation

* fix: make properly overridable
2021-09-09 22:13:16 +02:00
Dhruv Manilawala
0cb1026b9e perf: load builtin submodules when a picker is invoked (#1191)
* Defer requiring submodules to when a builtin picker is actually invoked
2021-09-09 17:28:25 +02:00
Dheepak Krishnamurthy
288f243387 Add word to prompt title for grep string (#1184) 2021-09-09 09:43:59 -04:00
August Masquelier
12a44ededa fix(actions_generate.which_key): overriding opts (#1221)
* Fix error from type mismatch on repeated calls of `action.which_key` when instantiated by `actions.generate`
2021-09-07 17:29:57 +02:00
TJ DeVries
162cf7b534 fix(lsp): Handle new signature for lsp handlers 2021-09-05 21:07:41 -04:00
fdschmidt93
ac42f0c26c fix: clear buffer previewer fully for caching (#1201) 2021-09-02 16:36:08 +02:00
Phelipe
79c2ded6a8 fix(picker): incorrect git stash picker command (#1195)
* fix: should not use git log command in git stash picker

* Update lua/telescope/builtin/git.lua

Co-authored-by: tami5 <65782666+tami5@users.noreply.github.com>
2021-09-02 06:06:05 +03:00
fdschmidt93
97b7e6095f fix: string display for builtin.pickers (#1194) 2021-09-01 21:54:14 +02:00
fdschmidt93
fbe004142f feat: show keymaps for builtin actions (#1084)
* Add default mappings `<C-/>`and `?` for insert and normal mode, respectively, to show registered keymappings (`actions.which_key`) attached to prompt buffer
2021-09-01 20:11:53 +02:00
fdschmidt93
5d37c3ea08 feat: allow caching and resuming picker (#1051)
* expose `cache_picker` in telescope.setup to configure caching, see `:h telescope.defaults.cache_picker`
* add builtin.resume and builtin.pickers picker
2021-09-01 18:17:18 +02:00
fdschmidt93
8710baa6fb fix(pickers): initial normal mode (#1165)
fix(pickers): opts.default_text and cursor are now correctly set for opts.initial_mode="normal"
2021-09-01 17:09:26 +02:00
Simon Hauser
baf39e5339 doc: generate docgen
i forgot it. My bad
2021-09-01 16:53:56 +02:00
Logan Connolly
b0c04c62b5 feat: add utility for fetching buffer directory (#902) 2021-09-01 16:52:45 +02:00
TJ DeVries
4d691fdc23 fix: Should not block on git commands (#1176) 2021-09-01 16:15:37 +02:00
Omar Zeghouani
a1a7785acf fix: autocommands cursor outside of buffer (#1157)
Closes #957
2021-09-01 16:12:28 +02:00
TJ DeVries
dcee6c81f4 fix: Fix line endings for windows (#1169) 2021-08-26 13:01:31 -07:00
Dhruv Manilawala
e6838a6289 fix(ts-highlighting): get hl name from the capture (#1166)
After this commit (2460f0a702), the `hl_cache` variable
stores the hl_ID instead of the group name.

Another way to get the hl name which is adopted from the method used
here `_get_hl_from_capture`:

    ```lua
    local hl = vim.treesitter.highlighter.hl_map[query.captures[id]]
    ```

But, as the method covers another case, we can directly use it.

I've also added the type guard so that, in the future, it does not
explode like it does now.

fixes: #1151
2021-08-25 22:21:17 +02:00
fdschmidt93
50e5e86ac3 fix: safer teardown of buffer previewer (#1158) 2021-08-23 20:20:41 +02:00
Aiden Scandella
f45c170f28 fix(pickers): attach_mappings on builtins.buffers needs return (#1155) 2021-08-23 19:07:57 +02:00
fdschmidt93
79dc995f82 fix: (terminal) buffer previewer (#1120)
Use existing buffers for buffer previewer to allow previewing special buffer types
2021-08-23 15:27:11 +02:00
tami5
03c2b8f6bb refactor(pickers): remove additional fileopen (#1154)
unfinished work from #1122
2021-08-23 10:17:59 +03:00
Emilia Simmons
d8eeb0e4ac pickers(*): Add support for &tags (#1122) 2021-08-23 01:02:09 +03:00
Simon Hauser
8381a215e0 hotfix: should have been there but wasnt
ref: https://github.com/nvim-telescope/telescope.nvim/issues/1145#issuecomment-903161099
2021-08-21 21:13:09 +02:00
Simon Hauser
e46ef8ffec fix: for default sorters so we dont sort data after ordinal len if #prompt == 0 (#1146) 2021-08-21 20:53:09 +02:00
Simon Hauser
1c276f5539 fix(pickers): config mappings (#1147)
This happens because we removed our packed deepcopy. So i refactored
this part to not do a deepcopy
2021-08-21 21:02:38 +03:00
Simon Hauser
364d795d22 fix: some improvements for telescope.symbols if run in insert mode (#1117)
- keep insert if run in insert mode
- also look in `.local/share/nvim/telescope/symbols/*.json` for symbols
  can be overriden with `symbol_path`
2021-08-21 16:48:19 +02:00
Luke Kershaw
fbc983eb91 fix(command_parser): pcall for the loadstring (#1134) 2021-08-21 11:44:27 +01:00
TJ DeVries
4f91ffcbab fix: Close async oneshot jobs on finder:close (#1140) 2021-08-20 14:41:52 -04:00
TJ DeVries
260f4617b6 startup: load once and only when called for devicons (#1139) 2021-08-20 13:47:30 -04:00
TJ DeVries
ea5ab8f7c4 feat: Use nvim_buf_set_extmark right_align to do the magic for us (#1138) 2021-08-20 13:35:21 -04:00
TJ DeVries
bc470fe59f fix(sorters): fix sorters running after destroy, which can segfault (#1137)
* fix(sorters): fix sorters running after destroy, which can segfault

* fixup: Only check when we've set a status
2021-08-20 13:12:29 -04:00
Joshua Cao
b47bb8df1e mapping: Remove center action after select_default action in default mappings. (#974) 2021-08-20 12:02:22 -04:00
TJ DeVries
a97af306c4 feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs

* short circuit to using bad finder if you pass writer.
2021-08-20 11:11:24 -04:00
Luke Kershaw
d6d28dbe32 fix(command parser): evaluate valid lua expressions (#1128) 2021-08-19 20:49:16 +01:00