Commit Graph

650 Commits

Author SHA1 Message Date
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
Jan Steinke
615efe666b Allow range parameters on command parser (#1123) 2021-08-19 19:11:22 +02:00
Luke Kershaw
161a2e9f61 fix(command parser): discard invalid lua expressions (#1124) 2021-08-19 19:09:14 +02:00
Luke Kershaw
f67d3e883d feat: allow tables in vimscript command parser (#1075) 2021-08-18 10:05:04 +01:00
James Trew
f039f60a99 chore: separate commit date & time in git_branches (#1111) 2021-08-12 15:30:10 +02:00
Marten Trip
06e55d3b3a fix: builtin list_or_jump now handles non list replies from the server (#1101)
fix for servers such as zls and clojure_lsp
2021-08-11 20:03:31 +02:00
fdschmidt93
cda284986f feat: api for clearing completion cb in userspace (#1097) 2021-08-11 09:00:23 -04:00
TJ DeVries
a056a9c7e0 feat: Move to plenary.popup (#1102) 2021-08-11 08:54:28 -04:00
Simon Hauser
2c573b9d12 fix: picker config (#1094) 2021-08-09 21:28:16 +02:00
TJ DeVries
273942cc47 fixup: stylua 2021-08-06 13:14:13 -04:00
TJ DeVries
ae897cec08 fix: Do not transform URIs 2021-08-06 13:12:13 -04:00
Simon Hauser
e7362e9996 chore: reformat docs after tree-sitter-lua changes 2021-08-04 22:41:18 +02:00
zeertzjq
d7cdfcbeb6 feat: add option jump_type to lsp_definitions and lsp_implementations (#1077) 2021-08-04 22:33:13 +02:00
zeertzjq
654903fc04 fix: preview the correct man page section (#1076) 2021-08-04 22:19:39 +02:00
Dhruv Manilawala
aa7c13ea36 fix: escape newlines in code action title (#1012) 2021-08-04 22:16:18 +02:00
Nazeeh ElDirghami
ca195e32e0 feat: live_grep and grep_string function for additional opts (allow file mask) (#1017) 2021-08-04 09:07:04 +02:00
bi0ha2ard
b7cd8c7699 fix(entry_to_qf): handle nil entry.cwd and absolute filenames (#1058) 2021-08-04 08:56:15 +02:00
Luke Kershaw
f8caad1d6b fix: fix file_browser on windows and potentially other file opens (#1026) 2021-08-03 11:08:42 +02:00
Joshua Cao
5ff6f9ad07 fix: git_bcommit use absolute path for current file (#1059) 2021-08-03 11:04:07 +02:00
Joel Palmer
b742c50bf1 feat: add git reset action for git commits picker (#999) 2021-07-30 00:16:45 +03:00
Lee Marlow
82f4d3028b feat: add no_ignore option to find_files (#1010)
Allow find_files to find files ignored by .gitignore
and other ignore files. This is supported by fd, rg, and fdfind.
2021-07-29 12:45:19 +03:00
elianiva
69adcbca87 refactor: remove unused parameter (#1044) 2021-07-25 16:33:05 +07:00
Sebastian Lyng Johansen
c0f1999b02 fix: make path for send to qflist correct (#1037) 2021-07-23 14:17:26 -04:00
Simon Hauser
79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
Simon Hauser
664690029f fix: unknown filetype error message (#1034) 2021-07-20 19:20:22 +02:00
Luke Kershaw
d057b10503 fix: check if tabline is present when calculating certain layouts (#1027)
* fix: check if tabline is present when calculating certain layouts

- also tweaks height calculation for `center` strategy

* refactor: remove `center` strategy tweak

- will reimplement something similar in another PR for a few of the strategies

* fix: check if `preview.line` is `nil`

* refactor: factor out `tbln` calculation and `max_lines` adjustment

- also tweaked `vertical` calculations so that no `nil` check is required
2021-07-20 18:15:01 +01:00