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: enhanced header rendering in the chat window #336

Closed folke closed 3 months ago

folke commented 3 months ago

As discussed, the separator is now repeated in a virtual line and has hl group CopilotChatSeparator.

The headers have hl_group CopilotChatHeader.

I didn't change the default header strings, so they still have ##, but that's no longer needed to get the same styling.   image

With custom header strings:

image

Closes #334

GitMurf commented 3 months ago

@deathbeam will this effect saving a chat conversation? Historically you could save the buffer as markdown file and have a nicely formatted conversation in markdown. Is that no longer the case if we are removing the ## Heading Syntax?

deathbeam commented 3 months ago

@deathbeam will this effect saving a chat conversation? Historically you could save the buffer as markdown file and have a nicely formatted conversation in markdown. Is that no longer the case if we are removing the ## Heading Syntax?

The syntax is still there this just added some extmarks on top for better visuals and thats it, do not affects how the data are stored at all

GitMurf commented 3 months ago

The syntax is still there this just added some extmarks on top for better visuals and thats it, do not affects how the data are stored at all

Oh ok. I guess I got a little confused with folke's custom header strings screenshot above.