FGtatsuro / github.nvim

Neovim plugin to see a file on current buffer via Github WebUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github.nvim

Build Status

Neovim plugin to see a file on current buffer via Github WebUI.

Requirements

The dependencies on other softwares/libraries for this project. This software may work even if these requirements aren't met, but the behavior on that case can't be supported officially.

  • Neovim (>= 0.5.x)
  • Python (>= 3.8.x)

Installation

  1. Create a directory to put this plugin.
$ mkdir -p ~/.config/nvim/bundle
  1. Clone this project under step1's directory.
$ git clone git@github.com:FGtatsuro/github.nvim.git ~/.config/nvim/bundle/github.nvim
  1. Add a directory of cloned this project to $runtimepath.
" Your vimrc
let &runtimepath.=','.$HOME.'/.config/nvim/bundle/github.nvim'
  1. Update plugin info.
# In Neovim
:UpdateRemotePlugins
:qa!

How to

Development

  1. Start Neovim with NVIM_PYTHON_LOG_FILE and NVIM_PYTHON_LOG_FILE, you can check logs of Neovim.
# FYI: https://github.com/neovim/python-client/blob/master/docs/usage/remote-plugins.rst
$ NVIM_PYTHON_LOG_LEVEL=DEBUG NVIM_PYTHON_LOG_FILE=./github.log nvim -u tests/vimrc
  1. Update the remote plugin manifest and restart Neovim. After that, please check futures of your plugin.
# In Neovim
:UpdateRemotePlugins
:qa!

...

$ (Same command to step1)
:(Run plugin's command/function/mapping and so on)

About

Neovim plugin to see a file on current buffer via Github WebUI.

License:MIT License


Languages

Language:Python 74.5%Language:Makefile 12.9%Language:Vim Script 12.7%