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.
This commit is contained in:
Emanuel Krollmann
2025-04-07 11:07:31 +02:00
committed by GitHub
parent 1e9e523521
commit 3ebde5ea14

View File

@@ -4844,7 +4844,9 @@ local options = {
{ {
abbreviation = 'kp', abbreviation = 'kp',
defaults = { defaults = {
if_true = ':Man', condition = 'MSWIN',
if_true = ':help',
if_false = ':Man',
doc = '":Man", Windows: ":help"', doc = '":Man", Windows: ":help"',
}, },
desc = [=[ desc = [=[