|
|
|
@ -68,13 +68,27 @@ left = ["mode", "spinner"]
|
|
|
|
|
center = ["file-name"]
|
|
|
|
|
right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"]
|
|
|
|
|
separator = "│"
|
|
|
|
|
mode.normal = "NORMAL"
|
|
|
|
|
mode.insert = "INSERT"
|
|
|
|
|
mode.select = "SELECT"
|
|
|
|
|
```
|
|
|
|
|
The `[editor.statusline]` key takes the following sub-keys:
|
|
|
|
|
|
|
|
|
|
The following elements can be configured:
|
|
|
|
|
| Key | Description | Default |
|
|
|
|
|
| --- | --- | --- |
|
|
|
|
|
| `left` | A list of elements aligned to the left of the statusline | `["mode", "spinner", "file-name"]` |
|
|
|
|
|
| `center` | A list of elements aligned to the middle of the statusline | `[]` |
|
|
|
|
|
| `right` | A list of elements aligned to the right of the statusline | `["diagnostics", "selections", "position", "file-encoding"]` |
|
|
|
|
|
| `separator` | The character used to separate elements in the statusline | `"│"` |
|
|
|
|
|
| `mode.normal` | The text shown in the `mode` element for normal mode | `"NOR"` |
|
|
|
|
|
| `mode.insert` | The text shown in the `mode` element for insert mode | `"INS"` |
|
|
|
|
|
| `mode.select` | The text shown in the `mode` element for select mode | `"SEL"` |
|
|
|
|
|
|
|
|
|
|
The following statusline elements can be configured:
|
|
|
|
|
|
|
|
|
|
| Key | Description |
|
|
|
|
|
| ------ | ----------- |
|
|
|
|
|
| `mode` | The current editor mode (`NOR`/`INS`/`SEL`) |
|
|
|
|
|
| `mode` | The current editor mode (`mode.normal`/`mode.insert`/`mode.select`) |
|
|
|
|
|
| `spinner` | A progress spinner indicating LSP activity |
|
|
|
|
|
| `file-name` | The path/name of the opened file |
|
|
|
|
|
| `file-encoding` | The encoding of the opened file if it differs from UTF-8 |
|
|
|
|
|