Skip to content

Commit a1a16ee

Browse files
chore(doc): auto generate docs
1 parent ec678b0 commit a1a16ee

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

doc/CopilotChat.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
==============================================================================
44
Table 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
586587
installed.
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

0 commit comments

Comments
 (0)