You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to register additional tree-sitter languages, to be used in ad-hoc invocations of sg. This can be realized in multiple ways, number 2 or 5 of which i think is best.
Add support for global a $HOME/.config/ast-grep/sgconfig.yaml
Add support for reduced scope $HOME/.config/ast-grep/extra-languages.yaml
Add an environ, e.g. AST_GREP_LANGUAGES="lang:/path/to/grammar-lang.so;"
Make all sg subcommands, not just sg scan, accept a --config, allowing me to shadow sg with a shell alias
Allow one to link against additional languages at compile time
⭐ Suggestion
I want to be able to register additional tree-sitter languages, to be used in ad-hoc invocations of
sg
. This can be realized in multiple ways, number 2 or 5 of which i think is best.$HOME/.config/ast-grep/sgconfig.yaml
$HOME/.config/ast-grep/extra-languages.yaml
AST_GREP_LANGUAGES="lang:/path/to/grammar-lang.so;"
sg
subcommands, not justsg scan
, accept a--config
, allowing me to shadowsg
with a shell aliasrelated: #30 (comment)
💻 Use Cases
The text was updated successfully, but these errors were encountered: