From fcf20edd32b1a9b32cd2eb04fa28c940ee42d8cf Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:30:49 +0000 Subject: [PATCH] feat: add some basic doc for options --- helix-term/src/commands/typed.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 2383897e415f..65e50e80276e 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2530,8 +2530,18 @@ fn read(cx: &mut compositor::Context, args: &[Cow], event: PromptEvent) -> Ok(()) } -static SUB_DOC_QUIT: Lazy> = - Lazy::new(|| HashMap::from([("a", "b")])); +static SUB_DOC_QUIT: Lazy> = Lazy::new(|| { + HashMap::from([ + ( "scrolloff", "Number of lines of padding around the edge of the screen when scrolling\n\ndefault\n\n 5"), + ("mouse" , "Enable mouse mode\n\ndefault\n\n true"), + ("default-yank-register" , "Default register used for yank/paste\n\ndefault\n\n\""), + ("middle-click-paste" , "Middle click paste support\n\ndefault\n\n true"), + ("scroll-lines" , "Number of lines to scroll per scroll wheel step\n\ndefault\n\n 3"), + ("line-number" , "Line number display: `absolute` simply shows each line's number, while `relative` shows the distance from the current line. When unfocused or in insert mode, `relative` will still show absolute line numbers\n\ndefault\n\n absolute"), + ("cursorline" , "Highlight all lines with a cursor\n\ndefault\n\n false"), + ("cursorcolumn" , "Highlight all columns with a cursor\n\ndefault\n\n false"), + ]) +}); pub static TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ TypableCommand {