NetBSD: man.lua fails to find manpage
Problem
In NetBSD, pressing K with the cursor on top of a call to open (2) gives the following error:
man.lua: "Could not determine man directories from: 'man -w', 'manpath' or $MANPATH"
The FIND_ARG in runtime/lua/man.lua is -w, so I tried running the command manually to check the output:
$ man -w open
/usr/share/man/man2/open.2
Additionally, inputing a section before pressing K, for example 2K (which would bring the page for open(2)) gives the error
E481: No range allowed
Both commands work as expected in vim 9.0.
Steps to reproduce
Example code:
open()
Place the cursor on top of open and execute the K command in normal mode.
Expected behavior
The manual page for the open(2) system call is opened.
Neovim version (nvim -v)
NVIM v0.9.0
Vim (not Nvim) behaves the same?
No. VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 6 2023 02:53:08)
Operating system/version
NetBSD 10.99.10 (GENERIC64)
Terminal name/version
wezterm 20230712-072601-f4abf8fd
$TERM environment variable
tmux-256color
Installation
Installed with pkg_add (system package manager)
E481: No range allowed
fixed in https://github.com/neovim/neovim/pull/25922
Is this still an issue with latest master (Nvim 0.12)?
I set up a bare NetBSD 10.1 and built master (NVIM v0.12.0-dev-1690+g0a0c349b6f). Same steps, same output:
$ man -w open /usr/share/man/man2/open.2
Pressing K on nvim:
Sorry for the screenshot; I haven't set up sshd.