feat: add vim fold

main
sudo pacman -Syu 2023-07-13 12:55:56 +07:00
parent ce459c33a6
commit ab35ba468b
2 changed files with 10 additions and 0 deletions

View File

@ -101,6 +101,11 @@
</ul>
</li>
</ul>
<p>Folding:</p>
<ul>
<li><code>za</code>: toggle fold</li>
<li><code>zA</code>: toggle fold recursively</li>
</ul>
<p>Use both <code>\</code> and <code>;</code> as leader key:</p>
<div class="highlight highlight-source-lua">
<pre>vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>;<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>&lt;Leader&gt;<span class="pl-pds">"</span></span>, { remap <span class="pl-k">=</span> <span class="pl-c1">true</span> })

View File

@ -45,6 +45,11 @@ Jump advance:
- `CTRL-]`, `CTRL-T`: jump to tag/jump back from tag
- Support jump to Go definition with [fatih/vim-go](https://github.com/fatih/vim-go).
Folding:
- `za`: toggle fold
- `zA`: toggle fold recursively
Use both `\` and `;` as leader key:
```lua