Merge pull request #51 from TheBlob42/master

fix: improve git commit message via nvr
This commit is contained in:
Dheepak Krishnamurthy
2022-01-15 02:08:23 -07:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
if exists("g:lazygit_opened") && g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr") if exists("g:lazygit_opened") && g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr")
augroup lazygit_neovim_remote augroup lazygit_neovim_remote
autocmd! autocmd!
autocmd WinLeave <buffer> :LazyGit autocmd BufUnload <buffer> :lua local root = require('lazygit').project_root_dir(); vim.schedule(function() require('lazygit').lazygit(root) end)
autocmd WinLeave <buffer> :let g:lazygit_opened=0 autocmd BufUnload <buffer> :let g:lazygit_opened=0
augroup END augroup END
end end

View File

@@ -212,4 +212,9 @@ local function lazygitconfig()
end end
end end
return { lazygit = lazygit, lazygitfilter = lazygitfilter, lazygitconfig = lazygitconfig } return {
lazygit = lazygit,
lazygitfilter = lazygitfilter,
lazygitconfig = lazygitconfig,
project_root_dir = project_root_dir,
}