Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saying tree-sitter-mode not enabled #61

Closed
ezmiller opened this issue Aug 3, 2023 · 5 comments
Closed

Error saying tree-sitter-mode not enabled #61

ezmiller opened this issue Aug 3, 2023 · 5 comments
Labels
question Further information is requested

Comments

@ezmiller
Copy link

ezmiller commented Aug 3, 2023

I am on Emacs 29.1 and have installed tree-sitter libs for txs, typescript. and javascript. When I load a buffer and try to run a ts-fold command (e.g. ts-fold-toggle) I get an error:

Ignored, tree-sitter-mode is not enabled in the current buffer

However, if I check to see if I'm running a tree sitter mode by doing C-: and evaluating (symbol-name major-mode), I get typescript-ts-mode.

I am not sure what may be going on here. Any guidance would be greatly appreciated.

@jcs090218
Copy link
Member

I assumed you are using the built-in treesit.el (which came with Emacs 29.1). This package only supports the external tree-sitter.el, so you will need to install and enable that package. For the built-in treesit.el support, please follow this issue #48.

@jcs090218 jcs090218 added the question Further information is requested label Aug 3, 2023
@xmawja
Copy link

xmawja commented Dec 12, 2023

do you have any plan to support emacs 29.1 built-in treesit.el ?

@jcs090218
Copy link
Member

Yes, I'll support built-in treesit.el. However, I'm currently busy with other stuff in my life. I'll try to get back on track ASAP!

@getong
Copy link

getong commented Sep 21, 2024

9 months later, any progress?

@jcs090218
Copy link
Member

It has been implemented in https://github.com/emacs-tree-sitter/treesit-fold. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants