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

Feat: Add nvim-notify support #143

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

agoodshort
Copy link
Contributor

@agoodshort agoodshort commented Oct 5, 2023

As the title says, this adds support for nvim-notify.

The idea so far is to check if nvim-notify is installed, and if it is, we use vim.notify() to display the loading status.

I'm not sure how most people use nvim-notify and if they hook vim.notify = require("notify") as described in the README.
I personally use it through noice and this implementation works as expected. Maybe someone from #131 can shime in.

Next steps/questions:

  • Update docs?
  • Should it be configurable?
recording_20231005-234247.webm

(Kinda cool I received an error message during my recording 🥲)


Credit to this snippet which helped a lot to understand how to replace an existing notification


Closes #131

@agoodshort agoodshort changed the title Add nvim-notify support Feat: Add nvim-notify support Oct 5, 2023
@vuki656
Copy link
Owner

vuki656 commented Oct 6, 2023

Looks good. Thanks for implementing it.

As for the configurability, maybe see it people want it and add it then, not sure. Up to you :D


As for the error, I saw it happens and not sure why. I don't use the plugin myself that much so I haven't prioritized fixing it. If you are up for it, I'd be glad to help.


As for the docs, maybe add a note somewhere that notify is supported and put this video. I think that would work. Maybe without the error :D

@agoodshort
Copy link
Contributor Author

I am gone on holidays, will be back on a PC towards the end of October. I will then work on the points above.
Hope we get some feedback from people by then.

@vuki656
Copy link
Owner

vuki656 commented Jul 29, 2024

Hey @agoodshort, any plans to finish this?

@vuki656
Copy link
Owner

vuki656 commented Aug 6, 2024

Abandoned. If anyone wants to continue, free free. I'll review a PR.

@vuki656 vuki656 closed this Aug 6, 2024
@agoodshort
Copy link
Contributor Author

Hey @vuki656, I'm so sorry I totally forgot about this PR...

I reviewed the work done and fixed a few things, I created a new branch for now. If you're okay to reopen this PR, I will just force push my changes to my original branch agoodshort:nvim-notify

Regarding the comments above:

  • I won't make it configurable. If nvim-notify is installed, user will get the pop-ups (I think that's what most people would want... We didn't really get any feedback on the open issue)
  • The error message in the video above was a good example scenario to catch an installation failure. It helped me fix the pop-up style (warning => orange / error => red).

I think all I am missing is to add a note on the README and create a small gif to illustrate

@vuki656
Copy link
Owner

vuki656 commented Aug 7, 2024

Hey. Sure, i'll reopen it.

Regarding README, you can add the things you proposed

@vuki656 vuki656 reopened this Aug 7, 2024
@agoodshort agoodshort force-pushed the nvim-notify branch 4 times, most recently from 558aacf to a266064 Compare August 9, 2024 14:45
@vuki656 vuki656 merged commit 268f466 into vuki656:master Aug 12, 2024
4 checks passed
razak17 added a commit to razak17/package-info.nvim that referenced this pull request Aug 17, 2024
feat: add nvim-notify support (vuki656#143)
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

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Support nvim-notify
2 participants