From 8b2a14153b0d21391e06636d0df7e8cc1b8143c4 Mon Sep 17 00:00:00 2001 From: Alexis Kalabura Date: Thu, 21 Jul 2022 00:03:12 -0400 Subject: 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--- book/src/configuration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'book/src/configuration.md') 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 | -- cgit v1.2.3-70-g09d2