62 lines
1.4 KiB
Markdown
62 lines
1.4 KiB
Markdown
# lazygit.vim
|
|
|
|
Plugin for calling [lazygit](https://github.com/jesseduffield/lazygit) from within neovim.
|
|
|
|

|
|
|
|
If you are not using neovim nightly, use [this branch](https://github.com/kdheepak/lazygit.vim/tree/nvim-v0.4.3).
|
|
You can install it using the following:
|
|
|
|
```vim
|
|
Plug 'kdheepak/lazygit.vim', { 'branch': 'nvim-v0.4.3' }
|
|
```
|
|
|
|
### 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>
|
|
```
|
|
|
|
Open the configuration file for `lazygit` directly from vim.
|
|
|
|
```vim
|
|
:LazyGitConfig<CR>
|
|
```
|
|
|
|
If the file does not exist it'll load the defaults for you.
|
|
|
|

|