Pull Request reviews inside Neovim.
When you are looking at code, you are more effective using the tools you know. Want fuzzy file search? Jump to definition? These interactions are probably very natural in your local environment, which is why using GitHub to do a code review can be limiting. The goal of Critiq is to let you review pull requests without ever leaving Neovim.
This is a Neovim remote plugin leveraging the node host.
- Modify your
init.vim
withPlug 'neovim/node-host'
and run:PlugInstall
, or adapt that for your plugin manager of choice. - Make sure the remote plugin directory is in your runtime path: add
let &rtp = &rtp.','.expand('~').'/.nvim'
to yourinit.vim
if necessary. Run:set runtimepath?
to check its current value. - Download
critiq.js
to the node remote plugin directory (~/.nvim/rplugin/node/
). - Run
:UpdateRemotePlugins
to generate the manifest file. - Restart Neovim in a directory that is a git repo with an "origin" upstream that points to GitHub.
- Run
:CritiqPR
It's pretty simple, just run pulp build --to ~/.nvim/rplugin/node/critiq.js
to build the js source in the rplugin directory. When you start Neovim, set the NEOVIM_JS_DEBUG
environment variable to a filepath to send the logs to. Any calls to debug
will log to that file. Remember to update the manifest if you add a new autocommand, command, or function.
In no particular order...
- toggle review comments in a file
- define a command to add comments in a new buffer
- make remote parsing more flexible
- open links in browser
- see status of hooks