From ab35ba468bc43311ef3244bd3d977249d0522756 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 13 Jul 2023 12:55:56 +0700 Subject: [PATCH] feat: add vim fold --- docs/2023-05-03-neovim.html | 5 +++++ posts/2023-05-03-neovim.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/2023-05-03-neovim.html b/docs/2023-05-03-neovim.html index 0310f86..d94bc47 100644 --- a/docs/2023-05-03-neovim.html +++ b/docs/2023-05-03-neovim.html @@ -101,6 +101,11 @@ +

Folding:

+

Use both \ and ; as leader key:

vim.keymap.set("n", ";", "<Leader>", { remap = true })
diff --git a/posts/2023-05-03-neovim.md b/posts/2023-05-03-neovim.md
index d848c26..c0684fa 100644
--- a/posts/2023-05-03-neovim.md
+++ b/posts/2023-05-03-neovim.md
@@ -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