From 4e7a86c2629ee51371aff63f35c57ca9231473bf Mon Sep 17 00:00:00 2001 From: Em Zhan Date: Sun, 3 Sep 2023 12:04:04 -0500 Subject: [PATCH] Improve option description More discoverable and consistent with rest of docs and codebase Co-authored-by: Michael Davis --- book/src/configuration.md | 2 +- helix-view/src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/configuration.md b/book/src/configuration.md index 770993cae729..40adec68a95f 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -64,7 +64,7 @@ Its settings will be merged with the configuration directory `config.toml` and t | `text-width` | Maximum line length. Used for the `:reflow` command and soft-wrapping if `soft-wrap.wrap-at-text-width` is set | `80` | | `workspace-lsp-roots` | Directories relative to the workspace root that are treated as LSP roots. Should only be set in `.helix/config.toml` | `[]` | | `default-line-ending` | The line ending to use for new documents. Can be `native`, `lf`, `crlf`, `ff`, `cr` or `nel`. `native` uses the platform's native line ending (`crlf` on Windows, otherwise `lf`). | `native` | -| `insert-final-newline` | Whether to automatically insert a final newline on write if missing | `false` | +| `insert-final-newline` | Whether to automatically insert a trailing line-ending on write if missing | `false` | ### `[editor.statusline]` Section diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index b46e3fda583d..ff8c8bd9d577 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -287,7 +287,7 @@ pub struct Config { pub workspace_lsp_roots: Vec, /// Which line ending to choose for new documents. Defaults to `native`. i.e. `crlf` on Windows, otherwise `lf`. pub default_line_ending: LineEndingConfig, - /// Whether to automatically insert a final newline on write if missing. Defaults to `false`. + /// Whether to automatically insert a trailing line-ending on write if missing. Defaults to `false`. pub insert_final_newline: bool, /// Enables smart tab pub smart_tab: Option,