diff options
author | Emanuel Krollmann <115734183+Sodastream11@users.noreply.github.com> | 2025-04-07 11:07:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 02:07:31 -0700 |
commit | 3ebde5ea147c4ba931c72e8d860824d65be50004 (patch) | |
tree | 3e2d89b41aea16091927b46ef28aeed81732b920 | |
parent | 1e9e523521ca296151630333ce8424ecc2aabb17 (diff) | |
download | rneovim-3ebde5ea147c4ba931c72e8d860824d65be50004.tar.gz rneovim-3ebde5ea147c4ba931c72e8d860824d65be50004.tar.bz2 rneovim-3ebde5ea147c4ba931c72e8d860824d65be50004.zip |
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.
-rw-r--r-- | src/nvim/options.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 = [=[ |