52 lines
1.0 KiB
Markdown
52 lines
1.0 KiB
Markdown
# lazygit.vim
|
|
|
|
Plugin for calling [lazygit](https://github.com/jesseduffield/lazygit) from within neovim.
|
|
|
|
### Install
|
|
|
|
Use any plugin manager:
|
|
|
|
**[vim-plug](https://github.com/junegunn/vim-plug)**
|
|
|
|
```vim
|
|
Plug 'kdheepak/lazygit.vim'
|
|
```
|
|
|
|
**[dein.vim](https://github.com/Shougo/dein.vim)**
|
|
|
|
```vim
|
|
call dein#add('kdheepak/lazygit.vim')
|
|
```
|
|
|
|
**[Vundle.vim](https://github.com/junegunn/vim-plug)**
|
|
|
|
```vim
|
|
Plugin 'kdheepak/lazygit.vim'
|
|
```
|
|
|
|
### Usage
|
|
|
|
The following are configuration options and their defaults.
|
|
|
|
```vim
|
|
let g:lazygit_floating_window_winblend = 0 " transparency of floating window
|
|
let g:lazygit_floating_window_scaling_factor = 0.9 " scaling factor for floating window
|
|
```
|
|
|
|
Call `:LazyGit` to start a floating window with `lazygit`.
|
|
And set up a mapping to call `:LazyGit`:
|
|
|
|
```vim
|
|
" setup mapping to call :LazyGit
|
|
nnoremap <silent> <leader>lg :LazyGit<CR>
|
|
```
|
|
|
|
### Using neovim-remote
|
|
|
|
Add the following to your `.gitconfig` to use your current neovim instance at the commit editor for git.
|
|
|
|
```
|
|
[core]
|
|
editor = nvr --remote-wait-silent
|
|
```
|