@@ -79,17 +79,17 @@ programs.nixvim = {
7979
8080` opencode.nvim ` replaces placeholders in prompts with the corresponding context:
8181
82- | Placeholder | Context |
83- | -------------- | ------------------------------------------------------------- |
84- | ` @this ` | Operator range or visual selection if any, else cursor position |
85- | ` @buffer ` | Current buffer |
86- | ` @buffers ` | Open buffers |
87- | ` @visible ` | Visible text |
88- | ` @diagnostics ` | Current buffer diagnostics |
89- | ` @quickfix ` | Quickfix list |
90- | ` @diff ` | Git diff |
91- | ` @marks ` | Global marks |
92- | ` @grapple ` | [ grapple.nvim] ( https://github.com/cbochs/grapple.nvim ) tags |
82+ | Placeholder | Context |
83+ | -------------- | --------------------------------------------------------------- |
84+ | ` @this ` | Operator range or visual selection if any, else cursor position |
85+ | ` @buffer ` | Current buffer |
86+ | ` @buffers ` | Open buffers |
87+ | ` @visible ` | Visible text |
88+ | ` @diagnostics ` | Current buffer diagnostics |
89+ | ` @quickfix ` | Quickfix list |
90+ | ` @diff ` | Git diff |
91+ | ` @marks ` | Global marks |
92+ | ` @grapple ` | [ grapple.nvim] ( https://github.com/cbochs/grapple.nvim ) tags |
9393
9494### Prompts
9595
@@ -244,6 +244,19 @@ vim.g.opencode_opts = {
244244
245245Please submit PRs adding new providers! 🙂
246246
247+ #### Keymaps
248+
249+ ` opencode.nvim ` sets these buffer-local keymaps in provider terminals for Neovim-like message navigation:
250+
251+ | Keymap | Command | Description |
252+ | ------- | ------------------------ | ---------------------------- |
253+ | ` <C-u> ` | ` session.half.page.up ` | Scroll up half page |
254+ | ` <C-d> ` | ` session.half.page.down ` | Scroll down half page |
255+ | ` <Esc> ` | ` session.interrupt ` | Interrupt |
256+ | ` gg ` | ` session.first ` | Go to first message |
257+ | ` G ` | ` session.last ` | Go to last message |
258+
259+
247260## 🚀 Usage
248261
249262### ✍️ Ask — ` require("opencode").ask() `
0 commit comments