Skip to content

Commit d6d0248

Browse files
committed
feat(mini.nvim): sync to dce9bc4
1 parent 55062e7 commit d6d0248

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

mini.nvim/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ There are following change types:
107107

108108
- Add `pickers.colorschemes` picker. By @pkazmier, PR #1789.
109109

110+
- Add `workspace_symbol_live` scope to `pickers.lsp` picker. It allows searching for LSP symbols in the workspace with live feedback. Relates to `workspace_symbol` scope similarly to how `MiniPick.builtin.grep_live()` relates to `MiniPick.builtin.grep()`.
111+
110112
- Add `<C-e>` mapping for `pickers.history` picker to edit commands or searches in cmdline. By @TheLeoP, PR #1960.
111113

112114
## mini.files {#v0.17.0-mini.files}

mini.nvim/doc/mini-extra.qmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,14 +937,19 @@ Notes:
937937

938938
- "workspace_symbol".
939939

940+
- "workspace_symbol_live" - same as "workspace_symbol", but with live
941+
feedback treating picker's prompt as LSP server query. Similar to
942+
how [MiniPick.builtin.grep\_live()](mini-pick.qmd#minipick.builtin.grep_live) and [MiniPick.builtin.grep()](mini-pick.qmd#minipick.builtin.grep) are
943+
related. To use regular matching, activate [MiniPick-actions-refine](mini-pick.qmd#minipick-actions-refine).
944+
940945
- Relies on `vim.lsp.buf` methods supporting [vim.lsp.LocationOpts.OnList](https://neovim.io/doc/user/helptag.html?tag=vim.lsp.LocationOpts.OnList).
941946
In particular, it means that picker is started only if LSP server returns
942947
list of locations and not a single location.
943948

944949
- Doesn't return anything due to async nature of `vim.lsp.buf` methods.
945950

946951
- Requires set up [mini.icons](mini-icons.qmd#mini.icons) to show extra icons and highlighting in
947-
"document_symbol" and "workspace_symbol" scopes.
952+
"document_symbol", "workspace_symbol", "workspace_symbol_live" scopes.
948953

949954
Examples:
950955

@@ -964,7 +969,7 @@ Examples:
964969
- <span class="help-syntax-keys">\<scope\></span> `(string)` - LSP method to use. One of the supported ones (see
965970
list above). Default: `nil` which means explicit scope is needed.
966971

967-
- <span class="help-syntax-keys">\<symbol_query\></span> `(string)` - query for [vim.lsp.buf.workspace\_symbol()](https://neovim.io/doc/user/helptag.html?tag=vim.lsp.buf.workspace_symbol\(\)).
972+
- <span class="help-syntax-keys">\<symbol_query\></span> `(string)` - query for `"workspace_symbol"` scope.
968973
Default: empty string for all symbols (according to LSP specification).
969974

970975
<span class="help-syntax-special">{opts}</span> `(table|nil)` Options forwarded to [MiniPick.start()](mini-pick.qmd#minipick.start).

mini.nvim/doc/mini-pick.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,8 @@ This action is useful in at least two cases:
803803
matching, type "'hello" (notice "'" at the start) followed by `<C-Space>` and
804804
another "'world".
805805

806-
- Reset `match` to default. Particularly useful in [MiniPick.builtin.grep\_live()](mini-pick.qmd#minipick.builtin.grep_live).
806+
- Reset `match` to default. Particularly useful in [MiniPick.builtin.grep\_live()](mini-pick.qmd#minipick.builtin.grep_live)
807+
and [MiniExtra.pickers.lsp()](mini-extra.qmd#miniextra.pickers.lsp) with "workspace_symbol_live" scope.
807808

808809
##### Scroll {#minipick-actions-built-in-scroll}
809810

0 commit comments

Comments
 (0)