/telescope-github.nvim

Integration with github cli

Primary LanguageLua

Telescope-github.nvim

Integration with github cli

Installation

you need to install github cli first Install Github cli

Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-github.nvim'

Setup

require('telescope').load_extension('gh')

Available commands

Telescope gh issues
Telescope gh pull_request
Telescope gh gist

"Using lua function
lua require('telescope').extensions.gh.issues()<cr>
lua require('telescope').extensions.gh.pull_request()<cr>
lua require('telescope').extensions.gh.gist()<cr>

Options

You can add more filter to issue in commands

" filter with author and label
Telescope gh issues author=windwp label=bug

Pull Request

Options Filter

Detail

Query filter
assignee Filter by assignee
label Filter by label
state Filter by state: {open,closed,all}
base Filter by base branch
limit limit default = 100

Key mappings

key Usage
<cr> checkout pull request
<c-t> open web
<c-e> toggle to view detail or diff
<c-r> merge request

Issue

Options Filter

Detail

Query filter
author Filter by author
assignee Filter by assignee
mention Filter by mention
label Filter by label
milestone Filter by milestone
state Filter by state: {open,closed,all}
limit limit default = 100

Key mappings

key Usage
<cr> nothing
<c-t> open web

Gist

Options Filter

Detail

Query filter
public Filter by public
secret Filter by secret

Key mappings

key Usage
<cr> append gist to buffer
<c-t> open web