Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.96k stars 1.94k forks source link

Add scm file for Lua to enable repo map support #833

Open hhn12138 opened 3 months ago

hhn12138 commented 3 months ago

Issue

The document states that aider's tree-sitter supports the Lua language, but I cannot find the scm file for extracting Lua function blocks in the project's query directory. Could you please tell me where I can find the scm file for extracting Lua function blocks?

Version and model info

No response

paul-gauthier commented 3 months ago

Thanks for trying aider and filing this issue.

Sorry, I'm not sure where to find the lua query scm file.

Is there something that isn't working well for you when using aider with lua? It should work fairly well even without the scm files.

hhn12138 commented 3 months ago

@paul-gauthier Certainly! May I inquire as to why Tree-sitter does not necessitate an SCM file for the extraction of the repository map from the Lua code repository, and yet Aider is able to work without it?

paul-gauthier commented 3 months ago

Aider works fine with languages that don't have repo-map support. It may not work as well, but my suggestion is just to try and use aider and see rather than spending a bunch of effort up front worrying about repo-map support.