1- *CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 November 23
1+ *CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 November 24
22
33==============================================================================
44Table of Contents *CopilotChat-table-of-contents*
@@ -471,34 +471,16 @@ Also see here </lua/CopilotChat/config.lua>:
471471
472472>lua
473473 {
474- debug = false, -- Enable debug logging (same as 'log_level = 'debug' )
475- log_level = 'info' , -- Log level to use, 'trace' , 'debug' , 'info' , 'warn' , 'error' , 'fatal'
476- proxy = nil, -- [protocol://]host[:port] Use this proxy
477- allow_insecure = false, -- Allow insecure server connections
474+
475+ -- Shared config starts here (can be passed to functions at runtime)
478476
479477 system_prompt = prompts.COPILOT_INSTRUCTIONS, -- System prompt to use (can be specified manually in prompt via /).
480478 model = 'gpt-4o', -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
481479 agent = 'copilot' , -- Default agent to use, see ':CopilotChatAgents' for available agents (can be specified manually in prompt via @).
482480 context = nil, -- Default context or array of contexts to use (can be specified manually in prompt via #).
483481 temperature = 0.1, -- GPT result temperature
484482
485- question_header = '## User ', -- Header to use for user questions
486- answer_header = '## Copilot ', -- Header to use for AI answers
487- error_header = '## Error ', -- Header to use for errors
488- separator = '───', -- Separator to use in chat
489-
490- chat_autocomplete = true, -- Enable chat autocompletion (when disabled, requires manual `mappings.complete ` trigger)
491- show_folds = true, -- Shows folds for sections in chat
492- show_help = true, -- Shows help message as virtual lines when waiting for user input
493- auto_follow_cursor = true, -- Auto-follow cursor in chat
494- auto_insert_mode = false, -- Automatically enter insert mode when opening window and on new prompt
495- insert_at_end = false, -- Move cursor to end of buffer when inserting text
496- clear_chat_on_new_prompt = false, -- Clears chat on every new prompt
497- highlight_selection = true, -- Highlight selection
498- highlight_headers = true, -- Highlight headers in chat, disable if using markdown renderers (like render-markdown.nvim)
499-
500- history_path = vim.fn.stdpath('data' ) .. '/copilotchat_history', -- Default path to stored history
501- no_chat = false, -- Do not write to chat buffer and use history(useful for using callback for custom processing)
483+ headless = false, -- Do not write to chat buffer and use history(useful for using callback for custom processing)
502484 callback = nil, -- Callback to use when ask response is received
503485
504486 -- default selection
@@ -521,6 +503,30 @@ Also see here </lua/CopilotChat/config.lua>:
521503 zindex = 1, -- determines if window is on top or below other floating windows
522504 },
523505
506+ -- Static config starts here (can be configured only via setup function)
507+
508+ debug = false, -- Enable debug logging (same as 'log_level = 'debug' )
509+ log_level = 'info' , -- Log level to use, 'trace' , 'debug' , 'info' , 'warn' , 'error' , 'fatal'
510+ proxy = nil, -- [protocol://]host[:port] Use this proxy
511+ allow_insecure = false, -- Allow insecure server connections
512+ history_path = vim.fn.stdpath('data' ) .. '/copilotchat_history', -- Default path to stored history
513+
514+ question_header = '## User ', -- Header to use for user questions
515+ answer_header = '## Copilot ', -- Header to use for AI answers
516+ error_header = '## Error ', -- Header to use for errors
517+ separator = '───', -- Separator to use in chat
518+
519+ show_folds = true, -- Shows folds for sections in chat
520+ show_help = true, -- Shows help message as virtual lines when waiting for user input
521+ highlight_selection = true, -- Highlight selection
522+ highlight_headers = true, -- Highlight headers in chat, disable if using markdown renderers (like render-markdown.nvim)
523+
524+ chat_autocomplete = true, -- Enable chat autocompletion (when disabled, requires manual `mappings.complete ` trigger)
525+ auto_follow_cursor = true, -- Auto-follow cursor in chat
526+ auto_insert_mode = false, -- Automatically enter insert mode when opening window and on new prompt
527+ insert_at_end = false, -- Move cursor to end of buffer when inserting text
528+ clear_chat_on_new_prompt = false, -- Clears chat on every new prompt
529+
524530 -- default contexts
525531 contexts = {
526532 buffer = {
0 commit comments