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

Docs: Add info on what region of code is being evaluated #4

Open
chrisgrieser opened this issue Dec 13, 2022 · 1 comment
Open

Docs: Add info on what region of code is being evaluated #4

chrisgrieser opened this issue Dec 13, 2022 · 1 comment

Comments

@chrisgrieser
Copy link

in normal mode and insert mode, it is not entirely clear to me what region of code is being evaluated. Is it the line, the paragraph? Knowing this would be relevant to effectively use this plugin

@aduros
Copy link
Owner

aduros commented Dec 13, 2022

When running :AI with no arguments (such as when pressing <C-a> in insert mode), up to 20 lines before and after the cursor are included in the request to OpenAI to give context. You can adjust this by setting g:ai_context_before and g:ai_context_after.

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

No branches or pull requests

2 participants