diff options
author | Andrew Neth | 2022-01-25 15:18:01 +0000 |
---|---|---|
committer | GitHub | 2022-01-25 15:18:01 +0000 |
commit | 333c2949c2b036f8aafa77be2286eb3c135ea269 (patch) | |
tree | df675b8ca37690a368e42bb91855e631d7e425cc /helix-view/src/editor.rs | |
parent | 48a0c806520ea6f0404ea1d3a996c7a658f36aec (diff) |
feat(helix-view): dynamic line numbers (#1522)
* feat(helix-view): dynamic line numbers
* docs: describe editor.line-number in more detail
* Make dynamic numbers the default behavior of `relative`
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 82ef0cdc..aa2df6f7 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -170,7 +170,9 @@ impl Default for CursorShapeConfig { pub enum LineNumber { /// Show absolute line number Absolute, - /// Show relative line number to the primary cursor + + /// If focused and in normal/select mode, show relative line number to the primary cursor. + /// If unfocused or in insert mode, show absolute line number. Relative, } |