Skip to content

Commit eaaf207

Browse files
committed
update docs
1 parent 01d5851 commit eaaf207

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

docs/configuration.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,31 +101,19 @@ require("eca").setup({
101101

102102
---
103103

104-
## Chat headers
105-
You can customize the chat role headers shown in the sidebar. For example:
106-
107-
```lua
108-
require("eca").setup({
109-
chat = {
110-
headers = {
111-
user = "## 👨 Me\n\n", -- default: "## 👤 You\n\n"
112-
assistant = "## 🤖 Assistant\n\n", -- default: "## 🤖 ECA\n\n"
113-
},
114-
},
115-
})
116-
```
117-
118-
Notes:
119-
- These are plain strings; they will be printed verbatim as a single line.
120-
- A blank line is automatically inserted after the header.
121-
122104
## Presets
123105

124106
### Minimalist
125107
```lua
126108
require("eca").setup({
127109
behaviour = { show_status_updates = false },
128110
windows = { width = 30 },
111+
chat = {
112+
headers = {
113+
user = "> ",
114+
assistant = "",
115+
},
116+
},
129117
})
130118
```
131119

@@ -139,6 +127,12 @@ require("eca").setup({
139127
sidebar_header = { enabled = true, rounded = true },
140128
input = { prefix = "💬 ", height = 10 },
141129
},
130+
chat = {
131+
headers = {
132+
user = "## 👤 You\n\n",
133+
assistant = "## 🤖 ECA\n\n",
134+
},
135+
},
142136
})
143137
```
144138

0 commit comments

Comments
 (0)