Skip to content

feat: highlight the selection in the source buffer#332

Merged
deathbeam merged 1 commit intoCopilotC-Nvim:canaryfrom
folke:canary
May 27, 2024
Merged

feat: highlight the selection in the source buffer#332
deathbeam merged 1 commit intoCopilotC-Nvim:canaryfrom
folke:canary

Conversation

@folke
Copy link
Copy Markdown
Contributor

@folke folke commented May 27, 2024

I added a new option highlight_selection, that highlights the selection in the source buffer when in the chat window.
The highlight is only visible when the chat window is focused.

The hl group for the selection is CopilotChatSelection and is linked to Visual by default.

The option is enabled by default.

Let me know what you think!

image

Copy link
Copy Markdown
Collaborator

@deathbeam deathbeam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good

@folke
Copy link
Copy Markdown
Contributor Author

folke commented May 27, 2024

All done!

@folke folke requested a review from deathbeam May 27, 2024 15:26
Copy link
Copy Markdown
Collaborator

@deathbeam deathbeam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was quick, looks good thanks!

@deathbeam deathbeam merged commit df05a96 into CopilotC-Nvim:canary May 27, 2024
@deathbeam
Copy link
Copy Markdown
Collaborator

@all-contributors add @folke for code, docs

@allcontributors
Copy link
Copy Markdown
Contributor

@deathbeam

I've put up a pull request to add @folke! 🎉

@folke
Copy link
Copy Markdown
Contributor Author

folke commented May 27, 2024

Thanks for merging!

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.

2 participants