Skip to content

Commit

Permalink
Update configuration docs
Browse files Browse the repository at this point in the history
- Document the `file-modification-indicator` status line element
- Add a TODO to make it customizable
  • Loading branch information
theteachr committed Feb 18, 2023
1 parent a4751db commit dd02932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ The following statusline elements can be configured:
| `spinner` | A progress spinner indicating LSP activity |
| `file-name` | The path/name of the opened file |
| `file-base-name` | The basename of the opened file |
| `file-modification-indicator` | The indicator to show whether the file is modified (a `[+]` appears when there are unsaved changes) |
| `file-encoding` | The encoding of the opened file if it differs from UTF-8 |
| `file-line-ending` | The file line endings (CRLF or LF) |
| `total-line-numbers` | The total line numbers of the opened file |
Expand Down
1 change: 1 addition & 0 deletions helix-term/src/ui/statusline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ where
write(context, title, None);
}

// TODO: Make this customizable (will entail an update in the `editor.statusline` section of `book/src/configuration.md`).
fn render_file_modification_indicator<F>(context: &mut RenderContext, write: F)
where
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
Expand Down

0 comments on commit dd02932

Please sign in to comment.