Open edte opened 1 month ago
I am not getting any errors though?
Can you send a screenshot?
Here is my (debugging) init.lua with the error that occurs when I do :h
(or any other help command). I'm not using any particular plugin manager, just using Nix/Home Manager to place the plugin downloads the vim path.
However using a modified version of the minimal init.lua provided by noice, I am able to open help files without any issues and helpview is active.
However using a modified version of the minimal init.lua provided by noice, I am able to open help files without any issues and helpview is active.
Are you sure you don't have some other plugin that works on help files?
Are you sure you don't have some other plugin that works on help files?
It doesn't appear to be that - running nvim with the following init.lua still generates the same error, and presumably no other plugins are being loaded (using nvim -u helpview-init-nolazy.lua
)
require('helpview').setup()
It may be useful to know that this doesn't block the help file from opening, but the error is persistent (and with a notification plugin such as noice, this is pretty annoying)
It only happens on :h fold-manual
, right?
It only happens on
:h fold-manual
, right?
Any help command will cause the error for me.
That is so strange. Even with the minimal init.lua
I still can't reproduce the issue.
What neovim version are you using?
Also did you update the plugin?
What neovim version are you using?
Also did you update the plugin?
I'm using commit 336d731
I don't have any lua experience so apologies if I can't provide much assistance here.
Can you manually add vim.print(row_start)
before this line and see what gets printed?
Can you manually add
vim.print(row_start)
before this line and see what gets printed?
Which help file did you open?
I need it to check what is on that line.
Which help file did you open?
In the above screenshot, I was doing :h
so it gives 40, 43, 60
:h nvim
gives the rows 21, 72
:h fold-manual
gives the rows 13, 273, 463, 576, 617
That is very strange.
What does :InspectTree
show on these lines?
You may additionally want to run
:TSUpdate
to see if anything is out of date.
Anyway, you can just do :h
, 40j
& run :InspectTree
and see if it looks any different than my screenshot.
:TSUpdate
says all parsers are up to date
Here's a screen recording of running that set of commands and it does land on an h1 element, though I have no idea why unless we're somehow looking at different help files.
https://github.com/user-attachments/assets/1e36683d-a619-4572-98f4-6a7d06290539
I have found the issue.
You treesitter shows (word) (word)
. It should be showing (delimiter) (heading)
.
There's definitely something wrong with the parser you are using (headings should be highlighted even without the plugin, which isn't the case in the video).
Yup, nixpkgs has nvim-treesitter rev 8012b55, which pulls vimdoc b711df (as per their lockfile.json), one commit before that PR is merged. So looks like myself and anyone else having issues with this need to be on at least nvim-treesitter rev 69341a2.
when exec
h fold-manual
it failed