junyi-hou / tree-sitter-fold Goto Github PK
View Code? Open in Web Editor NEWCode-folding using tree-sitter
Code-folding using tree-sitter
I want to execute tree-sitter-fold-close-all
after the minor mode is enabled, I'm using this in my configuration (Using Doom):
(use-package! tree-sitter-fold
:config
(add-hook! 'tree-sitter-after-on-hook #'tree-sitter-fold-mode)
(add-hook! 'tree-sitter-fold-mode-hook #'tree-sitter-fold-close-all))
However, upon opening a .go
file nothing is folded, I have to manually call tree-sitter-fold-close-all
to see all the code folded.
Am I doing something wrong in my configuration, or something is missing in this package to enable such behavior?
Great work BTW.
This question will reflect my lack of proper emacs lisp, but is there an easy way to add an additional item to the ts-fold-range-alist
. Essentially, in addition to folding based on brace_list
, I would like to try have folding for paren_list
.
Thanks
Hi! Thank you for this nice project!
I have tried it today and I have a problem. Steps to reproduce:
tree-sitter-fold
lsp
, tree-sitter-fold
modesSaved file is broken - some characters are moved to wrong positions. Maybe gofmt
+ tree-sitter-fold
conflicts on save, not sure.
Hi,
I have a fork of this repository here. I was planning to contribute back to upstream, but then I realized I have gone too far and it would be difficult to review and merge. Here are some of my concerns. Do you have plan to publish this to ELPA/MELPA? If no, can I publish my own fork with the name tree-sitter-fold
? Or should I rename it to something else?
Since you are the original author, it would be great to hear what you think! And I appreciate this amazing project! ๐ ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.