Initial commit

This commit is contained in:
Dheepak Krishnamurthy
2020-04-03 16:41:47 -06:00
commit 3759d6ab85
4 changed files with 161 additions and 0 deletions

22
plugin/lazygit.vim Normal file
View File

@@ -0,0 +1,22 @@
scriptencoding utf-8
if exists('g:loaded_lazygit_vim') | finish | endif
let s:save_cpo = &cpoptions
set cpoptions&vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""
let s:lazygit_lua_loc = expand('<sfile>:h:r') . '/../lua/'
exe "lua package.path = package.path .. ';". s:lazygit_lua_loc."?/init.lua'"
exe "lua package.path = package.path .. ';". s:lazygit_lua_loc."?.lua'"
command! LazyGit lua require'lazygit'.lazygit()
""""""""""""""""""""""""""""""""""""""""""""""""""""""
let &cpoptions = s:save_cpo
unlet s:save_cpo
let g:loaded_lazygit_vim = 1