retrovim 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.conda/retrovim.yaml +259 -0
- package/.conda/terax.icns +0 -0
- package/.conda/terax.ico +0 -0
- package/.conda/terax.png +0 -0
- package/.github/workflows/release.yml +95 -0
- package/.gitmodules +3 -0
- package/.npm/kanata_touchcursor.js +28 -0
- package/.npm/nvim.js +26 -0
- package/.npm/yazi.js +26 -0
- package/.npm/zsh.js +17 -0
- package/.pip/kanata_touchcursor/__init__.py +28 -0
- package/.pip/nvim/__init__.py +31 -0
- package/.pip/yazi/__init__.py +31 -0
- package/.pip/zsh/__init__.py +22 -0
- package/CHANGELOG.md +26 -0
- package/LICENSE +674 -0
- package/README.md +336 -0
- package/kanata/touchcursor.kbd +164 -0
- package/nvim/init.lua +813 -0
- package/nvim/plugins/mini.nvim/.github/DISCUSSION_TEMPLATE/q-a.yml +72 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/bug-report.yml +136 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/nvim/plugins/mini.nvim/.github/ISSUE_TEMPLATE/feature-request.yml +75 -0
- package/nvim/plugins/mini.nvim/.github/PULL_REQUEST_TEMPLATE.md +2 -0
- package/nvim/plugins/mini.nvim/.github/workflows/quality-control.yml +150 -0
- package/nvim/plugins/mini.nvim/.pre-commit-config.yaml +20 -0
- package/nvim/plugins/mini.nvim/.stylua.toml +7 -0
- package/nvim/plugins/mini.nvim/.styluaignore +1 -0
- package/nvim/plugins/mini.nvim/CHANGELOG.md +1894 -0
- package/nvim/plugins/mini.nvim/CODE_OF_CONDUCT.md +132 -0
- package/nvim/plugins/mini.nvim/CONTRIBUTING.md +331 -0
- package/nvim/plugins/mini.nvim/LICENSE +21 -0
- package/nvim/plugins/mini.nvim/MAINTAINING.md +330 -0
- package/nvim/plugins/mini.nvim/Makefile +51 -0
- package/nvim/plugins/mini.nvim/README.md +261 -0
- package/nvim/plugins/mini.nvim/TESTING.md +1011 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/README.md +35 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/benchmark.sh +56 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-alpha.lua +21 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-original.lua +17 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_dashboard-starter.lua +18 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_empty.lua +4 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_starter-default.lua +7 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-alpha.lua +10 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-original.lua +7 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/init-files/init_startify-starter.lua +20 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/install.sh +10 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/make_summary.py +68 -0
- package/nvim/plugins/mini.nvim/benchmarks/starter/startup-summary.md +10 -0
- package/nvim/plugins/mini.nvim/colors/miniautumn.lua +55 -0
- package/nvim/plugins/mini.nvim/colors/minicyan.lua +95 -0
- package/nvim/plugins/mini.nvim/colors/minischeme.lua +95 -0
- package/nvim/plugins/mini.nvim/colors/minispring.lua +53 -0
- package/nvim/plugins/mini.nvim/colors/minisummer.lua +49 -0
- package/nvim/plugins/mini.nvim/colors/miniwinter.lua +51 -0
- package/nvim/plugins/mini.nvim/colors/randomhue.lua +16 -0
- package/nvim/plugins/mini.nvim/doc/mini-ai.txt +889 -0
- package/nvim/plugins/mini.nvim/doc/mini-align.txt +923 -0
- package/nvim/plugins/mini.nvim/doc/mini-animate.txt +937 -0
- package/nvim/plugins/mini.nvim/doc/mini-base16.txt +285 -0
- package/nvim/plugins/mini.nvim/doc/mini-basics.txt +359 -0
- package/nvim/plugins/mini.nvim/doc/mini-bracketed.txt +622 -0
- package/nvim/plugins/mini.nvim/doc/mini-bufremove.txt +123 -0
- package/nvim/plugins/mini.nvim/doc/mini-clue.txt +760 -0
- package/nvim/plugins/mini.nvim/doc/mini-cmdline.txt +392 -0
- package/nvim/plugins/mini.nvim/doc/mini-colors.txt +880 -0
- package/nvim/plugins/mini.nvim/doc/mini-comment.txt +230 -0
- package/nvim/plugins/mini.nvim/doc/mini-completion.txt +477 -0
- package/nvim/plugins/mini.nvim/doc/mini-cursorword.txt +105 -0
- package/nvim/plugins/mini.nvim/doc/mini-deps.txt +590 -0
- package/nvim/plugins/mini.nvim/doc/mini-diff.txt +661 -0
- package/nvim/plugins/mini.nvim/doc/mini-doc.txt +434 -0
- package/nvim/plugins/mini.nvim/doc/mini-extra.txt +856 -0
- package/nvim/plugins/mini.nvim/doc/mini-files.txt +1018 -0
- package/nvim/plugins/mini.nvim/doc/mini-fuzzy.txt +160 -0
- package/nvim/plugins/mini.nvim/doc/mini-git.txt +425 -0
- package/nvim/plugins/mini.nvim/doc/mini-hipatterns.txt +489 -0
- package/nvim/plugins/mini.nvim/doc/mini-hues.txt +420 -0
- package/nvim/plugins/mini.nvim/doc/mini-icons.txt +508 -0
- package/nvim/plugins/mini.nvim/doc/mini-indentscope.txt +485 -0
- package/nvim/plugins/mini.nvim/doc/mini-input.txt +932 -0
- package/nvim/plugins/mini.nvim/doc/mini-jump.txt +202 -0
- package/nvim/plugins/mini.nvim/doc/mini-jump2d.txt +525 -0
- package/nvim/plugins/mini.nvim/doc/mini-keymap.txt +449 -0
- package/nvim/plugins/mini.nvim/doc/mini-map.txt +717 -0
- package/nvim/plugins/mini.nvim/doc/mini-misc.txt +431 -0
- package/nvim/plugins/mini.nvim/doc/mini-move.txt +181 -0
- package/nvim/plugins/mini.nvim/doc/mini-notify.txt +434 -0
- package/nvim/plugins/mini.nvim/doc/mini-nvim.txt +431 -0
- package/nvim/plugins/mini.nvim/doc/mini-operators.txt +472 -0
- package/nvim/plugins/mini.nvim/doc/mini-pairs.txt +346 -0
- package/nvim/plugins/mini.nvim/doc/mini-pick.txt +1535 -0
- package/nvim/plugins/mini.nvim/doc/mini-sessions.txt +239 -0
- package/nvim/plugins/mini.nvim/doc/mini-snippets.txt +1291 -0
- package/nvim/plugins/mini.nvim/doc/mini-splitjoin.txt +536 -0
- package/nvim/plugins/mini.nvim/doc/mini-starter.txt +618 -0
- package/nvim/plugins/mini.nvim/doc/mini-statusline.txt +361 -0
- package/nvim/plugins/mini.nvim/doc/mini-surround.txt +863 -0
- package/nvim/plugins/mini.nvim/doc/mini-tabline.txt +151 -0
- package/nvim/plugins/mini.nvim/doc/mini-test.txt +966 -0
- package/nvim/plugins/mini.nvim/doc/mini-trailspace.txt +91 -0
- package/nvim/plugins/mini.nvim/doc/mini-visits.txt +937 -0
- package/nvim/plugins/mini.nvim/logo.png +0 -0
- package/nvim/plugins/mini.nvim/lua/mini/ai.lua +2244 -0
- package/nvim/plugins/mini.nvim/lua/mini/align.lua +2076 -0
- package/nvim/plugins/mini.nvim/lua/mini/animate.lua +2127 -0
- package/nvim/plugins/mini.nvim/lua/mini/base16.lua +1752 -0
- package/nvim/plugins/mini.nvim/lua/mini/basics.lua +772 -0
- package/nvim/plugins/mini.nvim/lua/mini/bracketed.lua +2013 -0
- package/nvim/plugins/mini.nvim/lua/mini/bufremove.lua +283 -0
- package/nvim/plugins/mini.nvim/lua/mini/clue.lua +2096 -0
- package/nvim/plugins/mini.nvim/lua/mini/cmdline.lua +1182 -0
- package/nvim/plugins/mini.nvim/lua/mini/colors.lua +2483 -0
- package/nvim/plugins/mini.nvim/lua/mini/comment.lua +586 -0
- package/nvim/plugins/mini.nvim/lua/mini/completion.lua +2094 -0
- package/nvim/plugins/mini.nvim/lua/mini/cursorword.lua +311 -0
- package/nvim/plugins/mini.nvim/lua/mini/deps.lua +1660 -0
- package/nvim/plugins/mini.nvim/lua/mini/diff.lua +1938 -0
- package/nvim/plugins/mini.nvim/lua/mini/doc.lua +1371 -0
- package/nvim/plugins/mini.nvim/lua/mini/extra.lua +2290 -0
- package/nvim/plugins/mini.nvim/lua/mini/files.lua +3145 -0
- package/nvim/plugins/mini.nvim/lua/mini/fuzzy.lua +356 -0
- package/nvim/plugins/mini.nvim/lua/mini/git.lua +1737 -0
- package/nvim/plugins/mini.nvim/lua/mini/hipatterns.lua +1042 -0
- package/nvim/plugins/mini.nvim/lua/mini/hues.lua +2088 -0
- package/nvim/plugins/mini.nvim/lua/mini/icons.lua +2254 -0
- package/nvim/plugins/mini.nvim/lua/mini/indentscope.lua +1158 -0
- package/nvim/plugins/mini.nvim/lua/mini/init.lua +427 -0
- package/nvim/plugins/mini.nvim/lua/mini/input.lua +2183 -0
- package/nvim/plugins/mini.nvim/lua/mini/jump.lua +609 -0
- package/nvim/plugins/mini.nvim/lua/mini/jump2d.lua +1244 -0
- package/nvim/plugins/mini.nvim/lua/mini/keymap.lua +880 -0
- package/nvim/plugins/mini.nvim/lua/mini/map.lua +1709 -0
- package/nvim/plugins/mini.nvim/lua/mini/misc.lua +969 -0
- package/nvim/plugins/mini.nvim/lua/mini/move.lua +509 -0
- package/nvim/plugins/mini.nvim/lua/mini/notify.lua +938 -0
- package/nvim/plugins/mini.nvim/lua/mini/operators.lua +1349 -0
- package/nvim/plugins/mini.nvim/lua/mini/pairs.lua +657 -0
- package/nvim/plugins/mini.nvim/lua/mini/pick.lua +3876 -0
- package/nvim/plugins/mini.nvim/lua/mini/sessions.lua +689 -0
- package/nvim/plugins/mini.nvim/lua/mini/snippets.lua +2828 -0
- package/nvim/plugins/mini.nvim/lua/mini/splitjoin.lua +1132 -0
- package/nvim/plugins/mini.nvim/lua/mini/starter.lua +1599 -0
- package/nvim/plugins/mini.nvim/lua/mini/statusline.lua +686 -0
- package/nvim/plugins/mini.nvim/lua/mini/surround.lua +2388 -0
- package/nvim/plugins/mini.nvim/lua/mini/tabline.lua +564 -0
- package/nvim/plugins/mini.nvim/lua/mini/test.lua +2516 -0
- package/nvim/plugins/mini.nvim/lua/mini/trailspace.lua +215 -0
- package/nvim/plugins/mini.nvim/lua/mini/visits.lua +1577 -0
- package/nvim/plugins/mini.nvim/readmes/mini-ai.md +190 -0
- package/nvim/plugins/mini.nvim/readmes/mini-align.md +203 -0
- package/nvim/plugins/mini.nvim/readmes/mini-animate.md +214 -0
- package/nvim/plugins/mini.nvim/readmes/mini-base16.md +198 -0
- package/nvim/plugins/mini.nvim/readmes/mini-basics.md +184 -0
- package/nvim/plugins/mini.nvim/readmes/mini-bracketed.md +193 -0
- package/nvim/plugins/mini.nvim/readmes/mini-bufremove.md +139 -0
- package/nvim/plugins/mini.nvim/readmes/mini-clue.md +260 -0
- package/nvim/plugins/mini.nvim/readmes/mini-cmdline.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-colors.md +169 -0
- package/nvim/plugins/mini.nvim/readmes/mini-comment.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-completion.md +217 -0
- package/nvim/plugins/mini.nvim/readmes/mini-cursorword.md +137 -0
- package/nvim/plugins/mini.nvim/readmes/mini-deps.md +271 -0
- package/nvim/plugins/mini.nvim/readmes/mini-diff.md +289 -0
- package/nvim/plugins/mini.nvim/readmes/mini-doc.md +198 -0
- package/nvim/plugins/mini.nvim/readmes/mini-extra.md +158 -0
- package/nvim/plugins/mini.nvim/readmes/mini-files.md +247 -0
- package/nvim/plugins/mini.nvim/readmes/mini-fuzzy.md +134 -0
- package/nvim/plugins/mini.nvim/readmes/mini-git.md +168 -0
- package/nvim/plugins/mini.nvim/readmes/mini-hipatterns.md +176 -0
- package/nvim/plugins/mini.nvim/readmes/mini-hues.md +285 -0
- package/nvim/plugins/mini.nvim/readmes/mini-icons.md +183 -0
- package/nvim/plugins/mini.nvim/readmes/mini-indentscope.md +191 -0
- package/nvim/plugins/mini.nvim/readmes/mini-input.md +163 -0
- package/nvim/plugins/mini.nvim/readmes/mini-jump.md +161 -0
- package/nvim/plugins/mini.nvim/readmes/mini-jump2d.md +197 -0
- package/nvim/plugins/mini.nvim/readmes/mini-keymap.md +205 -0
- package/nvim/plugins/mini.nvim/readmes/mini-map.md +191 -0
- package/nvim/plugins/mini.nvim/readmes/mini-misc.md +145 -0
- package/nvim/plugins/mini.nvim/readmes/mini-move.md +163 -0
- package/nvim/plugins/mini.nvim/readmes/mini-notify.md +175 -0
- package/nvim/plugins/mini.nvim/readmes/mini-operators.md +193 -0
- package/nvim/plugins/mini.nvim/readmes/mini-pairs.md +158 -0
- package/nvim/plugins/mini.nvim/readmes/mini-pick.md +340 -0
- package/nvim/plugins/mini.nvim/readmes/mini-sessions.md +164 -0
- package/nvim/plugins/mini.nvim/readmes/mini-snippets.md +373 -0
- package/nvim/plugins/mini.nvim/readmes/mini-splitjoin.md +194 -0
- package/nvim/plugins/mini.nvim/readmes/mini-starter.md +176 -0
- package/nvim/plugins/mini.nvim/readmes/mini-statusline.md +155 -0
- package/nvim/plugins/mini.nvim/readmes/mini-surround.md +190 -0
- package/nvim/plugins/mini.nvim/readmes/mini-tabline.md +156 -0
- package/nvim/plugins/mini.nvim/readmes/mini-test.md +175 -0
- package/nvim/plugins/mini.nvim/readmes/mini-trailspace.md +137 -0
- package/nvim/plugins/mini.nvim/readmes/mini-visits.md +243 -0
- package/nvim/plugins/mini.nvim/scripts/dual_log.sh +13 -0
- package/nvim/plugins/mini.nvim/scripts/dual_push.sh +15 -0
- package/nvim/plugins/mini.nvim/scripts/dual_release.sh +102 -0
- package/nvim/plugins/mini.nvim/scripts/dual_sync.sh +115 -0
- package/nvim/plugins/mini.nvim/scripts/init-deps-example.lua +59 -0
- package/nvim/plugins/mini.nvim/scripts/lint-filename-length.sh +16 -0
- package/nvim/plugins/mini.nvim/scripts/lintcommit-ci.sh +18 -0
- package/nvim/plugins/mini.nvim/scripts/lintcommit.lua +393 -0
- package/nvim/plugins/mini.nvim/scripts/minidoc.lua +57 -0
- package/nvim/plugins/mini.nvim/scripts/minimal_init.lua +28 -0
- package/nvim/plugins/mini.nvim/scripts/minitest.lua +4 -0
- package/package.json +16 -0
- package/pyproject.toml +43 -0
- package/yazi/init.lua +12 -0
- package/yazi/keymap.toml +114 -0
- package/yazi/lesskey +5 -0
- package/yazi/plugins/bookmarks.yazi/main.lua +86 -0
- package/yazi/plugins/cd-git-root.yazi/main.lua +31 -0
- package/yazi/plugins/smart-enter.yazi/main.lua +11 -0
- package/yazi/theme.toml +26 -0
- package/yazi/yazi.toml +15 -0
- package/zsh/.zshrc +145 -0
- package/zsh/starship.toml +20 -0
- package/zsh/zsh-patina.toml +2 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-bufremove_readme.png?raw=true" alt="mini.bufremove" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Buffer removing (unshow, delete, wipeout), which saves window layout
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-bufremove.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> This was previously hosted at a personal `echasnovski` GitHub account. It was transferred to a dedicated organization to improve long term project stability. See more details [here](https://github.com/nvim-mini/mini.nvim/discussions/1970).
|
|
11
|
+
|
|
12
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-bufremove) if you want to mention this module.
|
|
13
|
+
|
|
14
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
15
|
+
|
|
16
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
17
|
+
|
|
18
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+
<!-- Demo source: https://github.com/nvim-mini/assets/blob/main/demo/demo-bufremove.mp4 -->
|
|
27
|
+
https://user-images.githubusercontent.com/24854248/173044032-7874cf95-2e41-49fb-8abe-3aa73526972f.mp4
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
Which buffer to show in window(s) after its current buffer is removed is decided by the algorithm:
|
|
32
|
+
|
|
33
|
+
- If alternate buffer is listed, use it.
|
|
34
|
+
- If previous listed buffer is different, use it.
|
|
35
|
+
- Otherwise create a scratch one with `nvim_create_buf(true, true)` and use it.
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
40
|
+
|
|
41
|
+
There are two branches to install from:
|
|
42
|
+
|
|
43
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
44
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
45
|
+
|
|
46
|
+
Here are code snippets for some common installation methods (use only one):
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
50
|
+
|
|
51
|
+
**Full library**
|
|
52
|
+
|
|
53
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
54
|
+
|
|
55
|
+
**Standalone plugin**
|
|
56
|
+
|
|
57
|
+
Main branch:
|
|
58
|
+
|
|
59
|
+
```lua
|
|
60
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.bufremove' })
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Stable branch:
|
|
64
|
+
|
|
65
|
+
```lua
|
|
66
|
+
vim.pack.add({
|
|
67
|
+
{ src = 'https://github.com/nvim-mini/mini.bufremove', version = 'stable' },
|
|
68
|
+
})
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</details>
|
|
72
|
+
|
|
73
|
+
<details>
|
|
74
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
75
|
+
|
|
76
|
+
**Full library**
|
|
77
|
+
|
|
78
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
79
|
+
|
|
80
|
+
**Standalone plugin**:
|
|
81
|
+
|
|
82
|
+
Main branch:
|
|
83
|
+
|
|
84
|
+
```lua
|
|
85
|
+
add('nvim-mini/mini.bufremove')
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Stable branch:
|
|
89
|
+
|
|
90
|
+
```lua
|
|
91
|
+
add({ source = 'nvim-mini/mini.bufremove', checkout = 'stable' })
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
</details>
|
|
95
|
+
|
|
96
|
+
<details>
|
|
97
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
98
|
+
|
|
99
|
+
**Full library**
|
|
100
|
+
|
|
101
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
102
|
+
|
|
103
|
+
**Standalone plugin**
|
|
104
|
+
|
|
105
|
+
Main branch:
|
|
106
|
+
|
|
107
|
+
```lua
|
|
108
|
+
{ 'nvim-mini/mini.bufremove', version = false },
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Stable branch:
|
|
112
|
+
|
|
113
|
+
```lua
|
|
114
|
+
{ 'nvim-mini/mini.bufremove', version = '*' },
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</details>
|
|
118
|
+
|
|
119
|
+
**Important**: no need to call `require('mini.bufremove').setup()`, but it can be done to improve usability.
|
|
120
|
+
|
|
121
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
122
|
+
|
|
123
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
124
|
+
- Install plugin in other place with shorter path.
|
|
125
|
+
|
|
126
|
+
## Default config
|
|
127
|
+
|
|
128
|
+
```lua
|
|
129
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
130
|
+
{
|
|
131
|
+
-- Whether to disable showing non-error feedback
|
|
132
|
+
silent = false,
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Similar plugins
|
|
137
|
+
|
|
138
|
+
- [mhinz/vim-sayonara](https://github.com/mhinz/vim-sayonara)
|
|
139
|
+
- [moll/vim-bbye](https://github.com/moll/vim-bbye)
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-clue_readme.png?raw=true" alt="mini.clue" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Show next key clues
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-clue.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> This was previously hosted at a personal `echasnovski` GitHub account. It was transferred to a dedicated organization to improve long term project stability. See more details [here](https://github.com/nvim-mini/mini.nvim/discussions/1970).
|
|
11
|
+
|
|
12
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-clue) if you want to mention this module.
|
|
13
|
+
|
|
14
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
15
|
+
|
|
16
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
17
|
+
|
|
18
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+
<!-- Demo source: https://github.com/nvim-mini/assets/blob/main/demo/demo-clue.mp4 -->
|
|
27
|
+
https://github.com/nvim-mini/mini.nvim/assets/24854248/ea931966-067c-48af-93e9-36e9b8afb0ae
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- Implement custom key query process to reach target key combination:
|
|
32
|
+
- Starts after customizable opt-in triggers (mode + keys).
|
|
33
|
+
|
|
34
|
+
- Each key press narrows down set of possible targets.
|
|
35
|
+
|
|
36
|
+
Pressing `<BS>` removes previous user entry.
|
|
37
|
+
|
|
38
|
+
Pressing `<Esc>` or `<C-c>` leads to an early stop.
|
|
39
|
+
|
|
40
|
+
Doesn't depend on 'timeoutlen' and has basic support for 'langmap'.
|
|
41
|
+
|
|
42
|
+
- Ends when there is at most one target left or user pressed `<CR>`. Results into emulating pressing all query keys plus possible postkeys.
|
|
43
|
+
|
|
44
|
+
- Show window (after configurable delay) with clues. It lists available next keys along with their descriptions (auto generated from descriptions present keymaps and user-supplied clues; preferring the former).
|
|
45
|
+
|
|
46
|
+
- Configurable "postkeys" for key combinations - keys which will be emulated after combination is reached during key query process.
|
|
47
|
+
|
|
48
|
+
- Provide customizable sets of clues for common built-in keys/concepts:
|
|
49
|
+
- `g` key.
|
|
50
|
+
- `z` key.
|
|
51
|
+
- Window commands.
|
|
52
|
+
- Built-in completion.
|
|
53
|
+
- Marks.
|
|
54
|
+
- Registers.
|
|
55
|
+
|
|
56
|
+
- Lua functions to disable/enable triggers globally or per buffer.
|
|
57
|
+
|
|
58
|
+
For more information see these parts of help:
|
|
59
|
+
|
|
60
|
+
- `:h MiniClue-key-query-process`
|
|
61
|
+
- `:h MiniClue-examples`
|
|
62
|
+
- `:h MiniClue.config`
|
|
63
|
+
- `:h MiniClue.gen_clues`
|
|
64
|
+
|
|
65
|
+
Notes:
|
|
66
|
+
|
|
67
|
+
- There is no functionality to create mappings in order to clearly separate two different tasks.
|
|
68
|
+
|
|
69
|
+
The best suggested practice is to manually create mappings with descriptions (`desc` field in options), as they will be automatically used inside clue window.
|
|
70
|
+
|
|
71
|
+
- Triggers are implemented as special buffer-local mappings. This leads to several caveats:
|
|
72
|
+
- They will override same regular buffer-local mappings and have precedence over global one.
|
|
73
|
+
|
|
74
|
+
Example: having set `<C-w>` as Normal mode trigger means that there should not be another `<C-w>` mapping.
|
|
75
|
+
|
|
76
|
+
- They need to be the latest created buffer-local mappings or they will not function properly. Most common indicator of this is that some mapping starts to work only after clue window is shown.
|
|
77
|
+
|
|
78
|
+
Example: `g` is set as Normal mode trigger, but `gcc` from 'mini.comment' doesn't work right away. This is probably because there are some other buffer-local mappings starting with `g` which were created after mapping for `g` trigger. Most common places for this are in LSP server's `on_attach` or during tree-sitter start in buffer.
|
|
79
|
+
|
|
80
|
+
To check if trigger is the most recent buffer-local mapping, execute `:<mode-char>map <trigger-keys>` (like `:nmap g` for previous example). Mapping for trigger should be the first listed.
|
|
81
|
+
|
|
82
|
+
This module makes the best effort to work out of the box and cover most common cases, but it is not foolproof. The solution here is to ensure that triggers are created after making all buffer-local mappings: run either `MiniClue.setup()` or `MiniClue.ensure_buf_triggers()`.
|
|
83
|
+
|
|
84
|
+
- Descriptions from existing mappings take precedence over user-supplied clues. This is to ensure that information shown in clue window is as relevant as possible. To add/customize description of an already existing mapping, use `MiniClue.set_mapping_desc()`.
|
|
85
|
+
|
|
86
|
+
- Due to technical difficulties, there is no foolproof support for Operator-pending mode triggers (like `a`/`i` from 'mini.ai'):
|
|
87
|
+
- Doesn't work as part of a command in "temporary Normal mode" (like after `<C-o>` in Insert mode) due to implementation difficulties.
|
|
88
|
+
- Can have unexpected behavior with custom operators.
|
|
89
|
+
|
|
90
|
+
- Has (mostly solved) issues with macros:
|
|
91
|
+
- All triggers are disabled during macro recording due to technical reasons.
|
|
92
|
+
- The `@` and `Q` keys are specially mapped inside `MiniClue.setup()` to temporarily disable triggers.
|
|
93
|
+
|
|
94
|
+
## Config quick start
|
|
95
|
+
|
|
96
|
+
```lua
|
|
97
|
+
local miniclue = require('mini.clue')
|
|
98
|
+
miniclue.setup({
|
|
99
|
+
triggers = {
|
|
100
|
+
-- Leader triggers
|
|
101
|
+
{ mode = { 'n', 'x' }, keys = '<Leader>' },
|
|
102
|
+
|
|
103
|
+
-- `[` and `]` keys
|
|
104
|
+
{ mode = 'n', keys = '[' },
|
|
105
|
+
{ mode = 'n', keys = ']' },
|
|
106
|
+
|
|
107
|
+
-- Built-in completion
|
|
108
|
+
{ mode = 'i', keys = '<C-x>' },
|
|
109
|
+
|
|
110
|
+
-- `g` key
|
|
111
|
+
{ mode = { 'n', 'x' }, keys = 'g' },
|
|
112
|
+
|
|
113
|
+
-- Marks
|
|
114
|
+
{ mode = { 'n', 'x' }, keys = "'" },
|
|
115
|
+
{ mode = { 'n', 'x' }, keys = '`' },
|
|
116
|
+
|
|
117
|
+
-- Registers
|
|
118
|
+
{ mode = { 'n', 'x' }, keys = '"' },
|
|
119
|
+
{ mode = { 'i', 'c' }, keys = '<C-r>' },
|
|
120
|
+
|
|
121
|
+
-- Window commands
|
|
122
|
+
{ mode = 'n', keys = '<C-w>' },
|
|
123
|
+
|
|
124
|
+
-- `z` key
|
|
125
|
+
{ mode = { 'n', 'x' }, keys = 'z' },
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
clues = {
|
|
129
|
+
-- Enhance this by adding descriptions for <Leader> mapping groups
|
|
130
|
+
miniclue.gen_clues.square_brackets(),
|
|
131
|
+
miniclue.gen_clues.builtin_completion(),
|
|
132
|
+
miniclue.gen_clues.g(),
|
|
133
|
+
miniclue.gen_clues.marks(),
|
|
134
|
+
miniclue.gen_clues.registers(),
|
|
135
|
+
miniclue.gen_clues.windows(),
|
|
136
|
+
miniclue.gen_clues.z(),
|
|
137
|
+
},
|
|
138
|
+
})
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Installation
|
|
142
|
+
|
|
143
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
144
|
+
|
|
145
|
+
There are two branches to install from:
|
|
146
|
+
|
|
147
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
148
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
149
|
+
|
|
150
|
+
Here are code snippets for some common installation methods (use only one):
|
|
151
|
+
|
|
152
|
+
<details>
|
|
153
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
154
|
+
|
|
155
|
+
**Full library**
|
|
156
|
+
|
|
157
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
158
|
+
|
|
159
|
+
**Standalone plugin**
|
|
160
|
+
|
|
161
|
+
Main branch:
|
|
162
|
+
|
|
163
|
+
```lua
|
|
164
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.clue' })
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Stable branch:
|
|
168
|
+
|
|
169
|
+
```lua
|
|
170
|
+
vim.pack.add({
|
|
171
|
+
{ src = 'https://github.com/nvim-mini/mini.clue', version = 'stable' },
|
|
172
|
+
})
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
</details>
|
|
176
|
+
|
|
177
|
+
<details>
|
|
178
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
179
|
+
|
|
180
|
+
**Full library**
|
|
181
|
+
|
|
182
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
183
|
+
|
|
184
|
+
**Standalone plugin**:
|
|
185
|
+
|
|
186
|
+
Main branch:
|
|
187
|
+
|
|
188
|
+
```lua
|
|
189
|
+
add('nvim-mini/mini.clue')
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Stable branch:
|
|
193
|
+
|
|
194
|
+
```lua
|
|
195
|
+
add({ source = 'nvim-mini/mini.clue', checkout = 'stable' })
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
</details>
|
|
199
|
+
|
|
200
|
+
<details>
|
|
201
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
202
|
+
|
|
203
|
+
**Full library**
|
|
204
|
+
|
|
205
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
206
|
+
|
|
207
|
+
**Standalone plugin**
|
|
208
|
+
|
|
209
|
+
Main branch:
|
|
210
|
+
|
|
211
|
+
```lua
|
|
212
|
+
{ 'nvim-mini/mini.clue', version = false },
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Stable branch:
|
|
216
|
+
|
|
217
|
+
```lua
|
|
218
|
+
{ 'nvim-mini/mini.clue', version = '*' },
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
</details>
|
|
222
|
+
|
|
223
|
+
**Important**: don't forget to call `require('mini.clue').setup()` to enable its functionality. **Needs to have triggers configured**.
|
|
224
|
+
|
|
225
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
226
|
+
|
|
227
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
228
|
+
- Install plugin in other place with shorter path.
|
|
229
|
+
|
|
230
|
+
## Default config
|
|
231
|
+
|
|
232
|
+
```lua
|
|
233
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
234
|
+
{
|
|
235
|
+
-- Array of extra clues to show
|
|
236
|
+
clues = {},
|
|
237
|
+
|
|
238
|
+
-- Array of opt-in triggers which start custom key query process.
|
|
239
|
+
-- **Needs to have something in order to show clues**.
|
|
240
|
+
triggers = {},
|
|
241
|
+
|
|
242
|
+
-- Clue window settings
|
|
243
|
+
window = {
|
|
244
|
+
-- Floating window config
|
|
245
|
+
config = {},
|
|
246
|
+
|
|
247
|
+
-- Delay before showing clue window
|
|
248
|
+
delay = 1000,
|
|
249
|
+
|
|
250
|
+
-- Keys to scroll inside the clue window
|
|
251
|
+
scroll_down = '<C-d>',
|
|
252
|
+
scroll_up = '<C-u>',
|
|
253
|
+
},
|
|
254
|
+
}
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Similar plugins
|
|
258
|
+
|
|
259
|
+
- [folke/which-key.nvim](https://github.com/folke/which-key.nvim)
|
|
260
|
+
- [anuvyklack/hydra.nvim](https://github.com/anuvyklack/hydra.nvim)
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<p align="center"> <img src="https://github.com/nvim-mini/assets/blob/main/logo-2/logo-cmdline_readme.png?raw=true" alt="mini.cmdline" style="max-width:100%;border:solid 2px"/> </p>
|
|
2
|
+
|
|
3
|
+
### Command line tweaks
|
|
4
|
+
|
|
5
|
+
See more details in [Features](#features) and [Documentation](../doc/mini-cmdline.txt).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
⦿ This is a part of [mini.nvim](https://nvim-mini.org/mini.nvim) library. Please use [this link](https://nvim-mini.org/mini.nvim/readmes/mini-cmdline) if you want to mention this module.
|
|
10
|
+
|
|
11
|
+
⦿ All contributions (issues, pull requests, discussions, etc.) are done inside of 'mini.nvim'.
|
|
12
|
+
|
|
13
|
+
⦿ See [whole library documentation](https://nvim-mini.org/mini.nvim/doc/mini-nvim) to learn about general design principles, disable/configuration recipes, and more.
|
|
14
|
+
|
|
15
|
+
⦿ See [MiniMax](https://nvim-mini.org/MiniMax) for a full config example that uses this module.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
If you want to help this project grow but don't know where to start, check out [contributing guides of 'mini.nvim'](https://nvim-mini.org/mini.nvim/CONTRIBUTING) or leave a Github star for 'mini.nvim' project and/or any its standalone Git repositories.
|
|
20
|
+
|
|
21
|
+
## Demo
|
|
22
|
+
|
|
23
|
+
<!-- Demo source: https://github.com/nvim-mini/assets/blob/main/demo/demo-cmdline.mp4 -->
|
|
24
|
+
https://github.com/user-attachments/assets/9d3e12ac-ff17-4bdb-bbe8-3010c966c110
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Autocomplete with customizable delay. Enhances [`:h cmdline-completion`](https://neovim.io/doc/user/helptag.html?tag=cmdline-completion) and manual [`:h 'wildchar'`](https://neovim.io/doc/user/helptag.html?tag='wildchar') pressing experience. Requires Neovim>=0.11, though Neovim>=0.12 is recommended.
|
|
29
|
+
|
|
30
|
+
- Autocorrect words as-you-type. Only words that must come from a fixed set of candidates (like commands and options) are autocorrected by default.
|
|
31
|
+
|
|
32
|
+
- Autopeek command range as-you-type. Shows a floating window with range lines along with customizable context lines.
|
|
33
|
+
|
|
34
|
+
What it doesn't do:
|
|
35
|
+
|
|
36
|
+
- Customization of command line UI. Use [`:h vim._extui`](https://neovim.io/doc/user/helptag.html?tag=vim._extui) (on Neovim>=0.12).
|
|
37
|
+
|
|
38
|
+
- Customization of autocompletion candidates. They are computed via [`:h cmdline-completion`](https://neovim.io/doc/user/helptag.html?tag=cmdline-completion).
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
This plugin can be installed as part of 'mini.nvim' library (**recommended**) or as a standalone Git repository.
|
|
43
|
+
|
|
44
|
+
There are two branches to install from:
|
|
45
|
+
|
|
46
|
+
- `main` (default, **recommended**) will have latest development version of plugin. All changes since last stable release should be perceived as being in beta testing phase (meaning they already passed alpha-testing and are moderately settled).
|
|
47
|
+
- `stable` will be updated only upon releases with code tested during public beta-testing phase in `main` branch.
|
|
48
|
+
|
|
49
|
+
Here are code snippets for some common installation methods (use only one):
|
|
50
|
+
|
|
51
|
+
<details>
|
|
52
|
+
<summary><b>(Recommended)</b> With <a href="https://neovim.io/doc/user/helptag.html?tag=vim.pack">vim.pack</a> (on Neovim 0.12 and newer)</summary>
|
|
53
|
+
|
|
54
|
+
**Full library**
|
|
55
|
+
|
|
56
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
57
|
+
|
|
58
|
+
**Standalone plugin**
|
|
59
|
+
|
|
60
|
+
Main branch:
|
|
61
|
+
|
|
62
|
+
```lua
|
|
63
|
+
vim.pack.add({ 'https://github.com/nvim-mini/mini.cmdline' })
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Stable branch:
|
|
67
|
+
|
|
68
|
+
```lua
|
|
69
|
+
vim.pack.add({
|
|
70
|
+
{ src = 'https://github.com/nvim-mini/mini.cmdline', version = 'stable' },
|
|
71
|
+
})
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
</details>
|
|
75
|
+
|
|
76
|
+
<details>
|
|
77
|
+
<summary>With <a href="https://nvim-mini.org/mini.nvim/readmes/mini-deps">mini.deps</a> (before Neovim 0.12)</summary>
|
|
78
|
+
|
|
79
|
+
**Full library**
|
|
80
|
+
|
|
81
|
+
Follow [recommended 'mini.deps' installation](https://nvim-mini.org/mini.nvim/readmes/mini-deps#installation).
|
|
82
|
+
|
|
83
|
+
**Standalone plugin**:
|
|
84
|
+
|
|
85
|
+
Main branch:
|
|
86
|
+
|
|
87
|
+
```lua
|
|
88
|
+
add('nvim-mini/mini.cmdline')
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Stable branch:
|
|
92
|
+
|
|
93
|
+
```lua
|
|
94
|
+
add({ source = 'nvim-mini/mini.cmdline', checkout = 'stable' })
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
</details>
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
|
|
101
|
+
|
|
102
|
+
**Full library**
|
|
103
|
+
|
|
104
|
+
Follow ['mini.nvim' installation](https://nvim-mini.org/mini.nvim#installation).
|
|
105
|
+
|
|
106
|
+
**Standalone plugin**
|
|
107
|
+
|
|
108
|
+
Main branch:
|
|
109
|
+
|
|
110
|
+
```lua
|
|
111
|
+
{ 'nvim-mini/mini.cmdline', version = false },
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Stable branch:
|
|
115
|
+
|
|
116
|
+
```lua
|
|
117
|
+
{ 'nvim-mini/mini.cmdline', version = '*' },
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
</details>
|
|
121
|
+
|
|
122
|
+
**Important**: don't forget to call `require('mini.cmdline').setup()` to enable its functionality.
|
|
123
|
+
|
|
124
|
+
**Note**: if you are on Windows, there might be problems with too long file paths (like `error: unable to create file <some file name>: Filename too long`). Try doing one of the following:
|
|
125
|
+
|
|
126
|
+
- Enable corresponding git global config value: `git config --system core.longpaths true`. Then try to reinstall.
|
|
127
|
+
- Install plugin in other place with shorter path.
|
|
128
|
+
|
|
129
|
+
## Default config
|
|
130
|
+
|
|
131
|
+
```lua
|
|
132
|
+
-- No need to copy this inside `setup()`. Will be used automatically.
|
|
133
|
+
{
|
|
134
|
+
-- Autocompletion: show `:h 'wildmenu'` as you type
|
|
135
|
+
autocomplete = {
|
|
136
|
+
enable = true,
|
|
137
|
+
|
|
138
|
+
-- Delay (in ms) after which to trigger completion
|
|
139
|
+
-- Neovim>=0.12 is recommended for positive values
|
|
140
|
+
delay = 0,
|
|
141
|
+
|
|
142
|
+
-- Custom rule of when to trigger completion
|
|
143
|
+
predicate = nil,
|
|
144
|
+
|
|
145
|
+
-- Whether to map arrow keys for more consistent wildmenu behavior
|
|
146
|
+
map_arrows = true,
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
-- Autocorrection: adjust non-existing words (commands, options, etc.)
|
|
150
|
+
autocorrect = {
|
|
151
|
+
enable = true,
|
|
152
|
+
|
|
153
|
+
-- Custom autocorrection rule
|
|
154
|
+
func = nil,
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
-- Autopeek: show command's target range in a floating window
|
|
158
|
+
autopeek = {
|
|
159
|
+
enable = true,
|
|
160
|
+
|
|
161
|
+
-- Number of lines to show above and below range lines
|
|
162
|
+
n_context = 1,
|
|
163
|
+
|
|
164
|
+
-- Custom rule of when to show peek window
|
|
165
|
+
predicate = nil,
|
|
166
|
+
|
|
167
|
+
-- Window options
|
|
168
|
+
window = {
|
|
169
|
+
-- Floating window config
|
|
170
|
+
config = {},
|
|
171
|
+
|
|
172
|
+
-- Function to render statuscolumn
|
|
173
|
+
statuscolumn = nil,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Similar plugins
|
|
180
|
+
|
|
181
|
+
- [folke/noice.nvim](https://github.com/folke/noice.nvim)
|
|
182
|
+
- [nacro90/numb.nvim](https://github.com/nacro90/numb.nvim)
|
|
183
|
+
- Built-in [cmdline-autocompletion](https://neovim.io/doc/user/helptag.html?tag=cmdline-autocompletion) (on Neovim>=0.12)
|