Use buf_set_lines & buf_set_text methods instead of nvim.current.line - #9
Merged
Conversation
Contributor
|
Nice job 👏 |
jellydn
added a commit
to jellydn/CopilotChat.nvim
that referenced
this pull request
Jan 3, 2024
jellydn
added a commit
to jellydn/CopilotChat.nvim
that referenced
this pull request
Jan 19, 2024
* chore: sync fork * feat: add option to change view mode * chore: sync the change from CopilotC-Nvim#9 * docs: add new usage to canary branch fix: typo on usage * chore: sync fork chore: sync the fork chore: sync fork chore: sync fork * feat: add spinner * feat: show spinner on processing * chore: sync fork
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR uses
buf_set_lines&buf_set_textmethods to append new tokens to the end of the chat buffer, no matter which window is active and no matter the user's current cursor position.This makes moving the cursor / changing window mid generation possible without new tokens spewing out at the current cursor position.