feat(git): added lazygit

This commit is contained in:
Folke Lemaitre 2022-12-31 18:05:04 +01:00
parent c3eda447dd
commit 8d43ddec9b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -64,3 +64,16 @@ vim.cmd([[
xnoremap * :<C-u>call g:VSetSearch('/')<CR>/<C-R>=@/<CR><CR>
xnoremap # :<C-u>call g:VSetSearch('?')<CR>?<C-R>=@/<CR><CR>
]])
vim.keymap.set("n", "<leader>gg", function()
require("lazy.util").open_cmd({ "lazygit" }, {
terminal = true,
close_on_exit = true,
enter = true,
float = {
size = { width = 0.9, height = 0.9 },
margin = { top = 0, right = 0, bottom = 0, left = 0 },
},
})
end, { desc = "Lazygit" })