项目作者: Odie

项目描述 :
Magit-lite for neovim
高级语言: Lua
项目地址: git://github.com/Odie/gitabra.git
创建时间: 2021-03-09T12:04:37Z
项目社区:https://github.com/Odie/gitabra

开源协议:

下载


Gitabra

A little Magit in neovim

Demo Animation

Quick Start

:Gitabra to bring up the or refresh the status buffer

While in the status buffer:

  • <tab> to expand/collapse the node under the cursor
  • <enter> to visit the thing under the cursor
  • s to stage hunk or file under the cursor (partial hunk supported)
  • S stage all
  • u to unstage hunk or file under the cursor (partial hunk supported)
  • U unstage all
  • x to discard the hunk under the cursor (partial hunk supported)
  • q to quit the buffer and close the window
  • cc to start editing the commit message
  • ca to start editing the last commit message

While editing the commit message:

Gitabra will pass on the contents of COMMIT_EDITMSG to git when the buffer is
written to, or when the window is closed. Feel free to use “:w”, “:wq”, “:q”,
or your favorite vim command.

Installation

vim-plug

  1. Plug 'Odie/gitabra'
  2. lua << EOF
  3. require("gitabra").setup {
  4. -- Optional call to `setup`
  5. -- Leave empty to use defaults
  6. }
  7. EOF

Packer

  1. use {'Odie/gitabra',
  2. opt = true,
  3. cmd = {'Gitabra'},
  4. config = function()
  5. require("gitabra").setup {
  6. -- Optional call to `setup`
  7. -- Leave empty to use defaults
  8. }
  9. end
  10. }

Configuration

Gitabra currently use the following defaults.

  1. {
  2. disclosure_sign = {
  3. collapsed = ">",
  4. expanded = "⋁"
  5. }
  6. }

Modified settings can be set via gitabra.setup(). This needs to be done before activating
the plugin via the Gitabra command the first time.

WARNING!

This is alpha quality software!

It shouldn’t but might discard data you did not intend to.
Be careful!