Skip to content

justinmk/guh.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

164 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guh.nvim (ghlite.nvim fork)

Warning

This plugin is buns (aka not working, aka "WIP"). It is just a pre-alpha currently. PRs welcome!

Work with GitHub PRs in Neovim. Wraps the GitHub gh CLI with a minimalist yet effective workflow.

Usage

Run :Guh to see status.

:Guh

Run :Guh 42 to view PR or issue 42.

:Guh 42

See help file for details.

Install

vim.pack.add{ 'https://github.com/justinmk/guh.nvim' }

See help for default config.

Requirements:

How it works

  1. Show gh output in a :terminal buffer.
  2. Set keymaps on the buffer.
  3. PR diff comments are loaded in a 'scrollbind' split window.
  4. View CI logs.
  5. (TODO) Fetch the git data into .git (without doing a checkout).
  6. (TODO) When viewing the diff, user can navigate to the git object (file) without doing a checkout.
  7. (TODO) PR comments will display on relevant git objects.

Development

Run the tests:

NEOVIM_PATH='/path/to/neovim/' make test

Run specific tests:

NEOVIM_PATH='/path/to/neovim/' make test TEST_FILTER=load_comments

Related

Credits

guh.nvim was originally forked (and completely rewritten) from https://github.com/daliusd/ghlite.nvim by Dalius Dobravolskas.

About

tasty fork of ghlite.nvim

Resources

License

Stars

Watchers

Forks

Contributors