From 3ebde5ea147c4ba931c72e8d860824d65be50004 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: 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. --- src/nvim/options.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nvim/options.lua') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index cdec78513a..cfd92137d2 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -4844,7 +4844,9 @@ local options = { { abbreviation = 'kp', defaults = { - if_true = ':Man', + condition = 'MSWIN', + if_true = ':help', + if_false = ':Man', doc = '":Man", Windows: ":help"', }, desc = [=[ -- cgit