https://github.com/odie/gitabra
Magit-lite for neovim
https://github.com/odie/gitabra
git magit neovim-plugin
Last synced: 4 months ago
JSON representation
Magit-lite for neovim
- Host: GitHub
- URL: https://github.com/odie/gitabra
- Owner: Odie
- Created: 2021-03-09T12:04:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T09:04:31.000Z (over 3 years ago)
- Last Synced: 2023-03-23T02:01:37.965Z (about 3 years ago)
- Topics: git, magit, neovim-plugin
- Language: Lua
- Homepage:
- Size: 390 KB
- Stars: 57
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitabra
A little Magit in neovim

## Quick Start
`:Gitabra` to bring up the or refresh the status buffer
While in the status buffer:
- `` to expand/collapse the node under the cursor
- `` 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](https://github.com/junegunn/vim-plug)
```
Plug 'Odie/gitabra'
lua << EOF
require("gitabra").setup {
-- Optional call to `setup`
-- Leave empty to use defaults
}
EOF
```
[Packer](https://github.com/junegunn/vim-plug)
```
use {'Odie/gitabra',
opt = true,
cmd = {'Gitabra'},
config = function()
require("gitabra").setup {
-- Optional call to `setup`
-- Leave empty to use defaults
}
end
}
```
## Configuration
Gitabra currently use the following defaults.
```
{
disclosure_sign = {
collapsed = ">",
expanded = "⋁"
}
}
```
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!