Álan Crístoffer b539740486 Fixes paths with spaces
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.
2020-06-25 22:18:40 -03:00
2020-06-25 22:18:40 -03:00
2020-04-10 14:36:12 -06:00
2020-04-12 04:24:07 -06:00
2020-04-05 11:24:23 -06:00

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:

vim-plug

Plug 'kdheepak/lazygit.vim'

dein.vim

call dein#add('kdheepak/lazygit.vim')

Vundle.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.

Description
No description provided
Readme MIT 209 KiB
Languages
Lua 88.2%
Vim Script 11.8%