Giter VIP home page Giter VIP logo

tree-sitter-fold's People

Contributors

jakejx avatar junyi-hou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tree-sitter-fold's Issues

Unable to successfully execute `tree-sitter-fold-close-all` after enabling `tree-sitter-fold-mode`

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?

tree-sitter-fold breaks go table tests

Hi! Thank you for this nice project!

I have tried it today and I have a problem. Steps to reproduce:

  1. install tree-sitter-fold
  2. set (add-hook 'before-save-hook #'gofmt-before-save)
  3. open go table test file with multiple testcases
  4. enable lsp, tree-sitter-fold modes
  5. hide all nodes
  6. show some nodes
  7. delete some nodes (mark and delete some data inside testcase) - like this https://github.com/jurabek/golang-table-tests-with-testify-mock/blob/2238690d334f3235b5da87ce61c669fed2520ebd/computer/macbook_test.go#L101-L102
  8. save file

Saved file is broken - some characters are moved to wrong positions. Maybe gofmt + tree-sitter-fold conflicts on save, not sure.

How to add additional items to ts-fold-range-alist for ess-r-mode

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

New name? and publishing

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! ๐Ÿ˜ ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.