Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gustaveikaas/gh-notify.nvim
https://github.com/gustaveikaas/gh-notify.nvim
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gustaveikaas/gh-notify.nvim
- Owner: GustavEikaas
- License: mit
- Created: 2024-04-12T21:19:08.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T15:25:03.000Z (9 months ago)
- Last Synced: 2024-04-14T04:49:35.607Z (9 months ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# gh-notify.nvim
Receive and manage GitHub notifications directly within Neovim.
## Introduction
Welcome to gh-notify.nvim! This Neovim plugin allows you to receive and manage GitHub notifications without leaving your editor.
## Features
- **Mentioned**: Receive notifications when you're mentioned in GitHub issues or pull requests.
- **Assigned**: Get notified when someone assigns an issue or pull request to you.
- **State Change**: Receive notifications when the state of an issue or pull request changes.
- **Review Requested**: Get notified when someone requests your review on a pull request.
- **Team Mention**: Receive notifications when your GitHub team is mentioned.
- **Subscribed**: Get notified about activity on repositories you're subscribed to.## Setup
Ensure you have the following dependencies installed:
- [octo.nvim](https://github.com/pwntester/octo.nvim): Provides GitHub integration for Neovim.
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim): Enables interactive searching and browsing in Neovim.Add `gh-notify.nvim` to your Neovim configuration:
```lua
return {
"GustavEikaas/gh-notify.nvim",
dependencies = {'pwntester/octo.nvim', 'nvim-telescope/telescope.nvim', },
config = function()
require("gh-notify").setup({
-- Automatically fetches new notifications every 5 minutes
polling = true
})
end
}
```## Commands
### Lua Functions
- `notify.list()`: Open a Telescope picker with all notifications from the current repository.
- `notify.mention()`: Open a Telescope picker with all mention notifications.
- `notify.reviews()`: Open a Telescope picker with all review notifications.
- `notify.refresh()`: Manually fetch new notifications.
- `notify.assigned()`: Open a Telescope picker with all assigned notifications.### Vim Commands
- `:GhNotify list`: List all notifications.
- `:GhNotify refresh`: Manually refresh notifications.
- `:GhNotify assigned`: List assigned notifications.
- `:GhNotify mention`: List mention notifications.
- `:GhNotify reviews`: List review notifications.## Example Usage
1. After installing the plugin and its dependencies, open a Neovim session.
2. Use the provided commands or functions to view and manage your GitHub notifications directly within Neovim.
3. Stay focused and productive without switching between your editor and the GitHub website.