From 231968a002865d5449081e2f0851fc36893ccdde Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 9 Nov 2023 12:12:35 +1100 Subject: [PATCH] Update README for the ts_fold changes --- README.md | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ec0a842..7795802 100644 --- a/README.md +++ b/README.md @@ -884,14 +884,6 @@ You can in place edit your code in floating window Treetsitter symbols in all buffers ![treesitter](https://user-images.githubusercontent.com/1681295/118734953-cc6eba00-b882-11eb-9db8-0a052630d57e.jpg?raw=true) -### Signature help - -Improved signature help with current parameter highlighted - -![signature](https://github.com/ray-x/files/blob/master/img/navigator/signature_with_highlight.jpg?raw=true) - -![show_signature](https://github.com/ray-x/files/blob/master/img/navigator/show_signnature.gif?raw=true "show_signature") - ### Call hierarchy (incomming/outgoing calls) ![incomming_calls](https://user-images.githubusercontent.com/1681295/142348079-49b71486-4f16-4f10-95c9-483aad11c262.jpg) @@ -914,20 +906,41 @@ Codelens for C++/ccls. Symbol reference ![nerdfont](https://github.com/ray-x/files/blob/master/img/navigator/icon_nerd.jpg?raw=true) -### VS-code style folding with treesitter +### Enhanced Folding Inspired by VS Code Using Treesitter + +This feature introduces an advanced folding mechanism based on a customized variant of the treesitter folding algorithm (enabled with the ts_fold option). -Folding is using a hacked version of treesitter folding. (option: ts_fold) +#### function folding -#### folding function +The `end` delimiter of a function is recognized as a distinct ![image](https://user-images.githubusercontent.com/1681295/148491596-6cd6c507-c157-4536-b8c4-dc969436763a.png) -#### folding comments +#### comments folding -Multiline comments can be folded as it is treated as a block +Multiline comments are recognized as distinct blocks and can be collapsed seamlessly, simplifying navigation through extensive comments. ![image](https://user-images.githubusercontent.com/1681295/148491845-5ffb18ea-f05d-4229-aec3-aa635b3de814.png) +#### Condition (if) block folding with syntax highlight + +syntax highlight require treesitter and neovim 0.10 + + +image + +#### Function folding with syntax highlight + +image + +### Signature help + +Improved signature help with current parameter highlighted + +![signature](https://github.com/ray-x/files/blob/master/img/navigator/signature_with_highlight.jpg?raw=true) + +![show_signature](https://github.com/ray-x/files/blob/master/img/navigator/show_signnature.gif?raw=true "show_signature") + ## Debugging the plugin One simple way to gather debug info and understand what is wrong is to output the debug logs