Closed hrehfeld closed 3 months ago
This is simply the behavior of treesit-install-language-grammar
, and unrelated to treesit-auto
.
treesit-install-language-grammar
uses treesit-language-source-alist
(which is what treesit-auto
modifies), and from its documentation:
treesit-language-source-alist is a variable defined in ‘treesit.el’.
Its value is nil
Configuration for downloading and installing tree-sitter language grammars.
The value should be an alist where each element has the form
(LANG . (URL REVISION SOURCE-DIR CC C++))
Only LANG and URL are mandatory. LANG is the language symbol.
URL is the Git repository URL for the grammar.
REVISION is the Git tag or branch of the desired version,
defaulting to the latest default branch.
SOURCE-DIR is the relative subdirectory in the repository in which
the grammar’s parser.c file resides, defaulting to "src".
CC and C++ are C and C++ compilers, defaulting to "cc" and
"c++", respectively.
So it's specifically asking for a branch or tag, just as you've observed.
git clone -b
only seems to take branches.Reproduce:
& Restart
With
:revision "v0.20.4"
it just works.