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

[bug]: NNP blocks Snacks.nvim dashboard from opening #437

Open
1 task
supeoens opened this issue Jan 31, 2025 · 1 comment
Open
1 task

[bug]: NNP blocks Snacks.nvim dashboard from opening #437

supeoens opened this issue Jan 31, 2025 · 1 comment
Labels
need investigation When an issue lack context/is not straight forward to solve not confirmed when a bug is reported but not yet reproduced

Comments

@supeoens
Copy link

Description

I'm using the Lazyvim distribution, which uses Snacks.nvim to provide a dashboard. When I have NNP enabled with enableOnVimEnter = true, Snacks reports - WARNING dashboard did not open: more than one non-floating window`.

I can of course manually enable NNP after opening a file, but it would be great if it would be automatic.

Neovim version

Nightly

Steps to reproduce

  1. Install Lazyvim with no extras
  2. Install NNP
  3. Open nvim anywhere, and observe that an empty buffer opens instead of the dashboard

Relevant log output

Self-service

  • I'd be willing to fix this bug myself.
@supeoens supeoens added the bug Something isn't working label Jan 31, 2025
@shortcuts shortcuts added need investigation When an issue lack context/is not straight forward to solve not confirmed when a bug is reported but not yet reproduced and removed bug Something isn't working labels Feb 3, 2025
@shortcuts
Copy link
Owner

Hey @supeoens, thanks for using the plugin :)

I think this is the expected behavior, as if I understand correctly, Snacks's dashboard requires at most 1 opened buffer, so having the ones created by this plugin prevents it from opening.

I don't know Snacks configuration but if those solution exists, it could solve your issue:

  • Snacks providing a callback function that allows you to toggle no-neck-pain after the dashboard exits
  • Snacks allows filtering on filetype so you can exclude no-neck-pain buffers

Alternatively, I might be able to add some opt-in debouncing logic to no-neck-pain in order to support dashboard integrations, but I don't know how reliable this would be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need investigation When an issue lack context/is not straight forward to solve not confirmed when a bug is reported but not yet reproduced
Projects
None yet
Development

No branches or pull requests

2 participants