Commit Graph
933 Commits
Author SHA1 Message Date
莊喬andSimon Hauser 996eb191bf fix: avoid eval "= directly in builtin registers picker (#2347)
When "= contains expression not ought to be run in current context, the
`getreg('=')` raises error.

For example `:put =foo` (where `foo` is undefined) then open registers
picker it fails. Also #2228.

Now specify second arg to `getreg` to get register expr (instead of
"evaluated" result) as content, like what `:registers` command displays.

This has behavior change, if user still want to see/paste the
evaluated result, a customized action will be needed.

(cherry picked from commit b0395c2882)
2023-02-19 14:09:48 +01:00
Yuta KatayamaandSimon Hauser 9c16730e9b fix: rename ts_utils.get_node_range -> vim.treesitter.get_node_range (#2376)
(cherry picked from commit abba036478)
2023-02-19 14:09:38 +01:00
Josa GesellandSimon Hauser 0b4e54e86b fix: execute autocmds correctly (#2375)
(cherry picked from commit e572c63c7d)
2023-02-19 14:09:24 +01:00
KalkaandSimon Hauser 686aea90ef fix: wrap nvim_buf_set_option in a protected call (#2346)
(cherry picked from commit 65287605c3)
2023-02-19 14:08:59 +01:00
Fernando SchauenburgandSimon Hauser 4340c22b63 fix: man_pages on macOS and FreeBSD (#2326) (#2352)
macOS 13.x (Ventura, Darwin 22.x) uses `apropos(1)` from FreeBSD, which
does not behave the same as the previous implementation up to macOS 12.

`apropos(1)` takes a regular expression as an argument, so passing "."
causes it to match anything and therefore return all results to be
filtered by Telescope.

(cherry picked from commit d5f6c0911d)
2023-02-19 14:08:46 +01:00
vladislav dosterandSimon Hauser a1bd6866b5 docs: telescope.nvim spelling and grammar fixes (#2325)
Corrects the following issues:
- article agreement
- spelling

(cherry picked from commit dce1156ca1)
2023-01-22 10:09:28 +01:00
James TrewandSimon Hauser 0077389133 docs: proof-read edits (#2311)
(cherry picked from commit 053f2303c4)
2023-01-22 10:09:23 +01:00
cristiansofronieandSimon Hauser 6a65f24ff6 docs: fix unfinised sentence in docs (#2335)
(cherry picked from commit ed366bba14)
2023-01-22 10:09:18 +01:00
Hasan MahmudandSimon Hauser ebdea0a718 fix(oldfiles): use path separator from builtin utils in cwd_only (#2340)
(cherry picked from commit 83eb2f9756)
2023-01-22 10:08:44 +01:00
Simon Hauser 5182e1dd52 chore: fix stylua ci
(cherry picked from commit 0e56ea028d)
2023-01-22 10:08:39 +01:00
emmanueltouzeryandGitHub f7bceabcc9 fix(old_files): opts.cwd_only includes similarly named dirs (#2308)
(cherry picked from commit 04af51dbfb)
2023-01-07 12:45:58 +01:00
Adam TajtiandSimon Hauser 96c4060084 fix(tests): uses testharness in scrolling strategy (#2307)
(cherry picked from commit cd67e819e4)
2023-01-07 12:34:35 +01:00
TJ DeVriesandSimon Hauser 226d9852c7 fix: restore testing framework to actually work (#2070)
after refactor to some new asynchronous items for finders,
the tests stopped actually doing anything.

now they do things again.

(cherry picked from commit 4725867ec6)
2023-01-07 12:34:11 +01:00
Simon Hauser 6ece9c462a fix: live_grep additional_args parsing (#2306)
(cherry picked from commit 18fc02b499)
2023-01-06 14:35:51 +01:00
Jonas StrittmatterandSimon Hauser 48a77baffb fix: correctly parse filenames with special chars in git_status (#2296)
(cherry picked from commit b24fdfdb25)
2023-01-06 14:35:46 +01:00
tzacharandSimon Hauser e800aac4fc fix: do not use nvim_buf_line_count on unloaded buffers (#2261)
(cherry picked from commit c571d96fe5)
2023-01-06 14:35:24 +01:00
Tsakiris TryfonandSimon Hauser 7408286e67 docs: fix typos/wording (#2283)
(cherry picked from commit a606bd10c7)
2023-01-06 14:35:17 +01:00
C.D. MacEachernandSimon Hauser 0b0846fe83 fix(docs): point to correct lua modules (#2284)
(cherry picked from commit d7d3ea9015)
2023-01-06 14:35:08 +01:00
Simon Hauser 47143bbb42 chore: bump ci to more modern os and nvim versions (#2289)
(cherry picked from commit 0a7588252a)
2023-01-06 14:34:52 +01:00
Tobias SandSimon Hauser 9cc8a4b2c5 fix: jumplist picker indexing the line after (#2273)
(cherry picked from commit e960efa60e)
2023-01-06 14:32:07 +01:00
fcyingandSimon Hauser 10151e4dbb fix: misidentification invert and files_with_matches (#2240) (#2262)
(cherry picked from commit d16581ef7d)
2023-01-06 14:31:57 +01:00
Luke KershawandSimon Hauser bdb0cd51ff fix(builtin.live_grep): add spacer ":" even when coordinates disabled (#2275)
* fix(builtin.live_grep): add spacer ":" even when coordinates disabled

* fix docgen

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
(cherry picked from commit 278c797b58)
2023-01-06 14:31:47 +01:00
AntonandSimon Hauser a837cbdbe6 fix(builtin.commands): no preview for multiline description commands (#2244)
(cherry picked from commit 22e13f6f69)
2023-01-06 14:31:28 +01:00
ADoyleandSimon Hauser 2bf2d10d19 feat: the parameter "map" of attach_mappings can be list of modes to create mapping on multiple modes (#2220)
(cherry picked from commit d541e0d6e0)
2023-01-06 14:30:45 +01:00
Simon Hauser c8d69359d4 fix: generate.refine with border=false (#2223)
(cherry picked from commit 30826fcfb8)
2023-01-06 14:29:40 +01:00
Simon HauserandSimon Hauser bce36847e7 fix: always load the up to date picker config on picker open
(cherry picked from commit 97847309cb)
2023-01-06 14:29:29 +01:00
Simon Hauser 8944b48f21 fix: rg invert and files-with-matches res line parsing (#2208)
(cherry picked from commit 9cf465894a)
2023-01-06 14:29:21 +01:00
Gutyina GergőandSimon Hauser 6a67ef38bf feat: allow table as additional args in live grep and grep string (#2139)
(cherry picked from commit 5c7db4055d)
2023-01-06 14:28:55 +01:00
kylo252andSimon Hauser e7efa55b4f perf(builtin): faster list extend for find_files (#2205)
(cherry picked from commit 090b687542)
2023-01-06 14:28:21 +01:00
Nghia Le MinhandSimon Hauser c0894883fb feat(diagnostics): change highlight groups to DiagnosticSign... (#2194)
(cherry picked from commit f174a0367b)
2023-01-06 14:28:12 +01:00
Antoine BertinandSimon Hauser 50461b86c0 fix: selected icon highlight with color_devicons to false (#2187)
(cherry picked from commit 5fadc247c5)
2023-01-06 14:27:50 +01:00
Simon Hauser fd1b8bd9cf fix: preview = true (#2168)
(cherry picked from commit 3a29c1e89d)
2023-01-06 14:27:30 +01:00
Tushar KuntawarandSimon Hauser b206cef4fe works with register name and content (#2178)
(cherry picked from commit 76ea9a898d)
2023-01-06 14:27:04 +01:00
Tushar KuntawarandSimon Hauser c640176e95 fix: builtin register picker better sorting (#2175)
(cherry picked from commit 2428953db3)
2023-01-06 14:26:07 +01:00
Jieru MeiandSimon Hauser 8931c15a60 fix: checktime when git checkout (#2176)
(cherry picked from commit a7ede53f06)
2023-01-06 14:25:51 +01:00
Jonas StrittmatterandSimon Hauser 006b458a45 fix: check for window before scrolling previewer (#2163)
This avoids an error when scrolling the preview window
but the window is not visible (e.g. due to a screen resize).

(cherry picked from commit 30e2dc5232)
2023-01-06 14:25:33 +01:00
Sam RosenthalandSimon Hauser 0b1c41ad80 docs: update for git_files and live_grep (#2133)
(cherry picked from commit bd9e8a7eac)
2022-09-04 22:01:54 +02:00
Simon Hauser d74977591b fix: previewer if custom_captures are set (#2156)
(cherry picked from commit 19047b6b3c)
2022-09-04 22:01:47 +02:00
Simon Hauser 76eb49ef32 fix: nop i_<c-j> because we dont want allow new line (#2147)
(cherry picked from commit 49b043e2a3)
2022-09-04 22:01:36 +02:00
Christian ClasonandSimon Hauser 51faca4b53 fix(preview): update buffer previewer to upstream changes (#2150)
https://github.com/neovim/neovim/pull/19931 removed `_get_hl_from_capture(id)` since captures are now implicitly mapped to highlight groups with the same name.
(cherry picked from commit b923665e64)
2022-09-04 22:01:22 +02:00
Alexe Radu AndreiandSimon Hauser 8dce93793d fix: remove un-needed check (#2144)
(cherry picked from commit c92f86386f)
2022-08-26 15:28:04 +02:00
Munif TanjimandSimon Hauser 758b2b7978 fix(sorters): add highlighter to fuzzy_with_index_bias (#2134)
(cherry picked from commit 454823222d)
2022-08-26 15:27:58 +02:00
AkiandSimon Hauser 7bad079d46 fix(pickers): always redraw when screen is resized (#2140)
Due to regression from switching
to lua autocmd api pickers
 were resized only once.

(cherry picked from commit 3e944f02ff)
2022-08-26 15:27:51 +02:00
Michał NowotnikandSimon Hauser 510338722e fix: make_entry.gen_from_string is a factory and needs to be called (#2116)
(cherry picked from commit 12c08bfde7)
2022-08-13 11:33:39 +02:00
Emiel Van SeverenandSimon Hauser 0585cd9a8c fix: typo in docs (#2100)
(cherry picked from commit e1206cb3e1)
2022-08-13 11:33:30 +02:00
Nikita KulakovandSimon Hauser 2df16c0618 docs: fix arguments in mappings table to refelct implementation (#2111) (#2125)
(cherry picked from commit 36d4571b05)
2022-08-13 11:07:54 +02:00
Bryce MontanoandSimon Hauser 037134ae89 fix: find_files to force color=never (#2130)
Co-authored-by: Bryce Montano <brycesec@amazon.com>
(cherry picked from commit ad32a4c453)
2022-08-13 11:07:31 +02:00
Jonas StrittmatterandSimon Hauser 028dc2799d chore: reduce log level to trace in pickers.lua (#2124)
(cherry picked from commit c6cd725bc0)
2022-08-13 11:06:07 +02:00
Simon Hauser 760c779bb7 fix: previewer if cwd is not curr dir (#2084)
path needs to be expanded for filereadable and isdirectory

(cherry picked from commit 8746347ac4)
2022-08-10 22:15:01 +02:00
Fabian David SchmidtandSimon Hauser fdb4be95df fix(previewer): regression on live_grep (#2119)
(cherry picked from commit 8f80e82108)
2022-08-10 22:14:56 +02:00