mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-03 01:25:33 +02:00
feat(git): added lazygit
This commit is contained in:
parent
c3eda447dd
commit
8d43ddec9b
1 changed files with 13 additions and 0 deletions
|
@ -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" })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue