From 21822721390932581c7633bae8dc26fb875857f8 Mon Sep 17 00:00:00 2001 From: Emanuel Krollmann <115734183+Sodastream11@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:07:31 +0200 Subject: [PATCH] fix(defaults): keywordprg=:help on Windows #33336 Problem: As `:h kp` says, the default value for keywordprg should be ':help' on Windows. It is currently always ':Man'. Solution: Add condition to options.lua which sets keywordprg to ':help' if running on windows. (cherry picked from commit 3ebde5ea147c4ba931c72e8d860824d65be50004) --- src/nvim/options.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 1e4d2d15a1..4d80f76c0c 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -4789,7 +4789,9 @@ local options = { { abbreviation = 'kp', defaults = { - if_true = ':Man', + condition = 'MSWIN', + if_true = ':help', + if_false = ':Man', doc = '":Man", Windows: ":help"', }, desc = [=[