diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-02-12 14:16:47 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-03-11 18:00:18 +0100 |
| commit | b8a976afdaf0080498e85530fae65a3165f201d5 (patch) | |
| tree | df9889722d148f6d97f3821264a7c0255d5bee8b /runtime/lua/man.lua | |
| parent | 4aeeaa80273eda1cf4fdb5de4b8ea65a16cefbaf (diff) | |
| download | rneovim-b8a976afdaf0080498e85530fae65a3165f201d5.tar.gz rneovim-b8a976afdaf0080498e85530fae65a3165f201d5.tar.bz2 rneovim-b8a976afdaf0080498e85530fae65a3165f201d5.zip | |
docs: api, messages, lsp, trust
gen_vimdoc.lua: In prepare for the upcoming release, comment-out the
"Experimental" warning for prerelease features.
Diffstat (limited to 'runtime/lua/man.lua')
| -rw-r--r-- | runtime/lua/man.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index 9efc7e96f9..1104e7f906 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -221,12 +221,7 @@ local function get_path(name, sect) sect = sect or '' -- We can avoid relying on -S or -s here since they are very -- inconsistently supported. Instead, call -w with a section and a name. - local cmd --- @type string[] - if sect == '' then - cmd = { 'man', '-w', name } - else - cmd = { 'man', '-w', sect, name } - end + local cmd = sect == '' and { 'man', '-w', name } or { 'man', '-w', sect, name } local lines = system(cmd, true) local results = vim.split(lines, '\n', { trimempty = true }) |