27 lines
1.0 KiB
Lua
27 lines
1.0 KiB
Lua
-- LazyGit integration using dedicated plugin for better performance and keybind handling
|
|
return {
|
|
{
|
|
'kdheepak/lazygit.nvim',
|
|
cmd = {
|
|
'LazyGit',
|
|
'LazyGitConfig',
|
|
'LazyGitCurrentFile',
|
|
'LazyGitFilter',
|
|
'LazyGitFilterCurrentFile',
|
|
},
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
},
|
|
keys = {
|
|
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
|
{ '<leader>gf', '<cmd>LazyGitCurrentFile<cr>', desc = 'LazyGit Current File' },
|
|
},
|
|
config = function()
|
|
vim.g.lazygit_floating_window_winblend = 0 -- transparency of floating window
|
|
vim.g.lazygit_floating_window_scaling_factor = 0.95 -- scaling factor for floating window
|
|
vim.g.lazygit_floating_window_border_chars = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' } -- customize border
|
|
vim.g.lazygit_use_neovim_remote = 1 -- Use neovim remote for editing commit messages
|
|
end,
|
|
},
|
|
}
|