zbirenbaum / zbirenbaum/copilot.lua
(feat) Limit number of suggestion lines
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.1k
- Forks
- 161
- Avg merge
- 11h 54m
- Merged PRs (30d)
- 13
Description
Hi,
I would like to limit the suggestions I get to single line suggestions only, that would be possible through some config and a few changes to update_preview/accept. Is that something you think would benefit the project ?
I know that I can accept single lines but here I am talking about the suggestion virtual text too. I do not want to see blocks of code.
This could also take the form of some generic post-processing function that would take the suggestion lines and (in my case) limit them to the first line.
I feel like it would not be hard to get something working in either case. Let me know if you think this feature is worthwhile and/or if you want me to give it a try.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the update_preview and accept paths to see how suggestion lines are handled and rendered as virtual text. Decide how the requested configuration or generic post-processing should limit suggestions to the first line, then verify that preview and acceptance both honor the setting without showing code blocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100