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

Add support for config by lua #4

Closed
wants to merge 1 commit into from
Closed

Add support for config by lua #4

wants to merge 1 commit into from

Conversation

PatWie
Copy link
Owner

@PatWie PatWie commented Aug 6, 2024

Using lua to find ranges and nodes for more flexible logic. E.g., in python the docstring is within the function node and we can query for that. In Rust, we need to dyanmically scan sibling treesitter nodes.

Here, we expose some simple tree-sitter API to some lua files that can find the context and can do string processing for fomring a prompt or process answers (cleaning them up).

Using lua to find ranges and nodes for more flexible logic. E.g., in
python the docstring is within the function node and we can query for
that. In Rust, we need to dyanmically scan sibling treesitter nodes.

Here, we expose some simple tree-sitter API to some lua files that can
find the context and can do string processing for fomring a prompt or
process answers (cleaning them up).
@PatWie PatWie closed this Aug 7, 2024
@PatWie PatWie deleted the lua branch August 7, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant