summaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorAlexis Kalabura2022-07-21 04:03:12 +0000
committerGitHub2022-07-21 04:03:12 +0000
commit8b2a14153b0d21391e06636d0df7e8cc1b8143c4 (patch)
tree1acd64f439523618eec4ccc8ad049d68fb748c90 /book
parent906259cc41cc251dbbe1802e3a5e54a566a7d8d2 (diff)
add statusline element to display file line endings (#3113)
* add statusline element to display file line endings * run cargo fmt --all * change the word *ending* from plural to singular * support for the unicode-lines feature flag
Diffstat (limited to 'book')
-rw-r--r--book/src/configuration.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index c209dc3d..4eab4a48 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -62,7 +62,7 @@ Statusline elements can be defined as follows:
[editor.statusline]
left = ["mode", "spinner"]
center = ["file-name"]
-right = ["diagnostics", "selections", "position", "file-encoding", "file-type"]
+right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"]
```
The following elements can be configured:
@@ -73,6 +73,7 @@ The following elements can be configured:
| `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 |
+| `file-line-ending` | The file line endings (CRLF or LF) |
| `file-type` | The type of the opened file |
| `diagnostics` | The number of warnings and/or errors |
| `selections` | The number of active selections |