b53974048678f3f0983e107331594a5d44b1f6f6
As it is, when trying to call lazygit with a file that contains a space char in its path will fail, as the path will be broken into two arguments when passed to lazygit. The quotes I added fixes that. Then, there is the fact that the path returned by git has a newline at the end, so I trim the path to remove newlines at the beginning and end of paths. This version works with projects I have inside "Google Drive". I DID NOT TEST THIS, but are basically the same changes I made on the other branch.
lazygit.vim
Plugin for calling lazygit from within neovim.
If you are not using neovim nightly, use this branch. You can install it using the following:
Plug 'kdheepak/lazygit.vim', { 'branch': 'nvim-v0.4.3' }
Install
Use any plugin manager:
Plug 'kdheepak/lazygit.vim'
call dein#add('kdheepak/lazygit.vim')
Plugin 'kdheepak/lazygit.vim'
Usage
The following are configuration options and their defaults.
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:
" setup mapping to call :LazyGit
nnoremap <silent> <leader>lg :LazyGit<CR>
Open the configuration file for lazygit directly from vim.
:LazyGitConfig<CR>
If the file does not exist it'll load the defaults for you.
Languages
Lua
88.2%
Vim Script
11.8%

