Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help files for dap not found #1241

Open
Daemo00 opened this issue Nov 23, 2024 · 1 comment
Open

Help files for dap not found #1241

Daemo00 opened this issue Nov 23, 2024 · 1 comment

Comments

@Daemo00
Copy link

Daemo00 commented Nov 23, 2024

Describe the bug

Help for debug plugins is not found, for instance for dap.txt.
Help files are found after the first time the debugger is activated.

I have done some investigation and this has been caused by #1216.
Loading a plugin only when needed is great for optimizing resources, but help files should be always available, shouldn't they?
I opened this as a bug but maybe this is the expected behavior?
Maybe this is an issue of Lazy itself.

By the way, thanks for all the great work 🚀

To Reproduce

  1. Open Neovim
  2. :h dap.txt (autocompletion does not work)

Observed

E149: Sorry, no help for dap.txt

Expected

Help file https://github.com/mfussenegger/nvim-dap/blob/cc92b054720a96170eca6bd9bdedd43d2b0a7a8a/doc/dap.txt is shown

Desktop

  • OS: Ubuntu 24.10
  • Terminal: zsh

Neovim Version

NVIM v0.11.0-dev
Build type: RelWithDebInfo                                                                                                                                                                    
LuaJIT 2.1.1719379426
@gloomy-lemon-debatable
Copy link
Contributor

I opened this as a bug but maybe this is the expected behavior?
Maybe this is an issue of Lazy itself

That's correct. the lazy-loaded plugin directory is not loaded until the activation condition is met, so of course the help files are not loaded either.
If you have any feedback regarding this specification, you can file an issue in the lazy.nvim repository.

If you haven't had much response from the lazy.nvim team on this, and you'd like to suggest changes to the lazy-loading event of debug.lua in this project, I must admit that my personal opinion is not entirely in favour. I believe that the advantage of enabling a plugin only when necessary by entering a specific key outweighs the benefit of having unloaded plugin help files available at all times. Moreover, the activation key for it can be found by which-key.nvim at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants