feat: add vim fold
parent
ce459c33a6
commit
ab35ba468b
|
@ -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><Leader><span class="pl-pds">"</span></span>, { remap <span class="pl-k">=</span> <span class="pl-c1">true</span> })
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue