Skip to content

Use built-in treesitter on Emacs 29+ #7623

@flexagoon

Description

@flexagoon

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
  • The issue can be reproduced on the latest available commit of Doom.
  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

The :tools tree-sitter module should use the built-in treesit functionality of Emacs when using Emacs 29+

Current behavior

The module always uses the third-party tree-sitter package

Steps to reproduce

  1. Enable the :tools tree-sitter module, and enable +tree-sitter for some language
  2. Check what modes are enabled
  3. With proper behaviour, <lang>-ts-mode should be enabled, but currently <lang>-mode and tree-sitter-mode are used.

System Information

https://pastebin.com/8zu4gf4Y

Metadata

Metadata

Assignees

Labels

is:featureAdds or requests new features, or extends existing onesmodule:tools/tree-sitterPertains to Doom's :tools tree-sitter module

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions