CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.44k stars 67 forks source link

feat: highlight the selection in the source buffer #332

Closed folke closed 3 months ago

folke commented 3 months ago

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

folke commented 3 months ago

All done!

deathbeam commented 3 months ago

@all-contributors add @folke for code, docs

allcontributors[bot] commented 3 months ago

@deathbeam

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

folke commented 3 months ago

Thanks for merging!