OXY2DEV / helpview.nvim

Decorations for vimdoc/help files in Neovim
Apache License 2.0
182 stars 2 forks source link

Support sessions #14

Open matthis-k opened 2 weeks ago

matthis-k commented 2 weeks ago

Context: I use resession.nvim and therefore a help page can be open without me ever entering it and this the view is not loaded.

Basically this proposes to change the autocmd to something that would be triggered by any help buffer creation. This would not disturb normal use, as you need to create the buffer anyway.

I assume the same applies to markview.nvim.

OXY2DEV commented 2 weeks ago

Screenshot_2024-09-15-11-19-47-735_mark via gp-edit

ressesion disables autocmd(pretty sure this is to prevent plugins from shooting themselves in the foot) so there's probably no easy fix to this.

I will probably add a command to manually attach helpview to a buffer but I don't think you can automatically attach to a buffer.

This plugin uses BufWinEnter as the window is needed for running callbacks.