Skip to content

tanloong/github.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

将 GitHub Issue 和 Pull Request 页面内容加载到 Neovim buffer 中离线阅读。

依赖

  1. Python 3.7+
  2. Neovim 0.9+

安装

  1. 克隆插件
git clone https://github.com/tanloong/github.nvim

在浏览器添加未打包的扩展程序,目录就是克隆下来的项目根目录。

将项目根目录添加到 runtimepath:

let &runtimepath.=',/path/to/github.nvim'

运行 :UpdateRemotePlugins 来注册 python 插件提供的函数 运行 lua require("bite") 来加载 lua 插件

使用

打开一个 Neovim 实例,运行 :B start_server 开始监听 localhost:9001 端口,然后打开一个 GitHub Issue 或 PR 页面,点击左上角出现的 Listen editor 按钮,再回到 Neovim 运行 :B fetch_content,Issues/PR 内容就会加载到 Neovim 里。要关闭时,在 Neovim 运行 :B stop_server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published