File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- *CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 November 16
1+ *CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 November 17
22
33==============================================================================
44Table of Contents *CopilotChat-table-of-contents*
@@ -285,6 +285,7 @@ Also see here </lua/CopilotChat/config.lua>:
285285 answer_header = '## Copilot ', -- Header to use for AI answers
286286 error_header = '## Error ', -- Header to use for errors
287287 separator = '───', -- Separator to use in chat
288+ highlight_headers = true, -- Highlight headers in chat, disable if using markdown renderers (like render-markdown.nvim)
288289
289290 show_folds = true, -- Shows folds for sections in chat
290291 show_help = true, -- Shows help message as virtual lines when waiting for user input
@@ -586,9 +587,16 @@ Requires render-markdown
586587installed.
587588
588589>lua
590+ -- Registers copilot-chat filetype for markdown rendering
589591 require('render-markdown').setup({
590592 file_types = { 'markdown' , 'copilot-chat' },
591593 })
594+
595+ -- You might also want to disable default header highlighting for copilot chat when doing this
596+ require('CopilotChat').setup({
597+ highlight_headers = false,
598+ -- rest of your config
599+ })
592600<
593601
594602
You can’t perform that action at this time.
0 commit comments