commit 3ebde5ea147c4ba931c72e8d860824d65be50004
parent 1e9e523521ca296151630333ce8424ecc2aabb17
Author: Emanuel Krollmann <115734183+Sodastream11@users.noreply.github.com>
Date: Mon, 7 Apr 2025 11:07:31 +0200
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.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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 = [=[