Add neovim-remote section to the README.md
This commit is contained in:
19
README.md
19
README.md
@@ -1,6 +1,6 @@
|
||||
# lazygit.nvim
|
||||
# lazygit.vim
|
||||
|
||||
Plugin for calling lazygit from within nvim.
|
||||
Plugin for calling lazygit from within neovim.
|
||||
|
||||
### Install
|
||||
|
||||
@@ -9,19 +9,19 @@ Use any plugin manager:
|
||||
**[vim-plug](https://github.com/junegunn/vim-plug)**
|
||||
|
||||
```vim
|
||||
Plug 'kdheepak/lazygit.nvim'
|
||||
Plug 'kdheepak/lazygit.vim'
|
||||
```
|
||||
|
||||
**[dein.vim](https://github.com/Shougo/dein.vim)**
|
||||
|
||||
```vim
|
||||
call dein#add('kdheepak/lazygit.nvim')
|
||||
call dein#add('kdheepak/lazygit.vim')
|
||||
```
|
||||
|
||||
**[Vundle.vim](https://github.com/junegunn/vim-plug)**
|
||||
|
||||
```vim
|
||||
Plugin 'kdheepak/lazygit.nvim'
|
||||
Plugin 'kdheepak/lazygit.vim'
|
||||
```
|
||||
|
||||
### Usage
|
||||
@@ -30,3 +30,12 @@ Plugin 'kdheepak/lazygit.nvim'
|
||||
" 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
|
||||
```
|
||||
|
||||
@@ -65,7 +65,7 @@ function open_floating_window()
|
||||
end
|
||||
|
||||
local function project_root_dir()
|
||||
return fn.finddir('.git/..', fn.expand('%:p:h') .. ';')
|
||||
return fn.system('cd ' .. fn.expand('%:p:h') .. ' && git rev-parse --show-toplevel 2> /dev/null')
|
||||
end
|
||||
|
||||
local function execute(cmd, ...)
|
||||
|
||||
Reference in New Issue
Block a user