|
1 | | -*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 October 21 |
| 1 | +*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 October 23 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *CopilotChat-table-of-contents* |
@@ -484,10 +484,6 @@ CORE *CopilotChat-core* |
484 | 484 | chat.reset() -- Reset the chat |
485 | 485 | chat.stop() -- Stop current output |
486 | 486 |
|
487 | | - -- Source Management |
488 | | - chat.get_source() -- Get the current source buffer and window |
489 | | - chat.set_source(winnr) -- Set the source window |
490 | | - |
491 | 487 | -- Prompt & Model Management |
492 | 488 | chat.select_prompt(config) -- Open prompt selector with optional config |
493 | 489 | chat.select_model() -- Open model selector |
@@ -518,14 +514,17 @@ You can also access the chat window UI methods through the `chat.chat` object: |
518 | 514 | window:add_message({ role, content }, replace) -- Add or replace a message in chat |
519 | 515 | window:remove_message(role, cursor) -- Remove chat message by role, either last or closest to cursor |
520 | 516 | window:get_block(role, cursor) -- Get code block by role, either last or closest to cursor |
521 | | - window:add_sticky(sticky) -- Add sticky prompt to chat message |
522 | 517 |
|
523 | 518 | -- Content Management |
524 | 519 | window:append(text) -- Append text to chat window |
525 | 520 | window:clear() -- Clear chat window content |
526 | 521 | window:start() -- Start writing to chat window |
527 | 522 | window:finish() -- Finish writing to chat window |
528 | 523 |
|
| 524 | + -- Source Management |
| 525 | + window.get_source() -- Get the current source buffer and window |
| 526 | + window.set_source(winnr) -- Set the source window |
| 527 | + |
529 | 528 | -- Navigation |
530 | 529 | window:follow() -- Move cursor to end of chat content |
531 | 530 | window:focus() -- Focus the chat window |
|
0 commit comments